Skip to content

Commit

Permalink
vinegar: init at 1.7.8 (NixOS#347630)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 19, 2024
2 parents 35fffcd + 41e54e1 commit 76b5d1a
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 1 deletion.
81 changes: 81 additions & 0 deletions pkgs/by-name/vi/vinegar/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
lib,
buildGoModule,
fetchFromGitHub,
fetchurl,
pkg-config,
xorg,
wayland,
vulkan-headers,
wine64Packages,
libGL,
libxkbcommon,
makeBinaryWrapper,
nix-update-script,
}:
let
wine = (wine64Packages.staging.override { embedInstallers = true; }).overrideAttrs (oldAttrs: {
patches = oldAttrs.patches or [ ] ++ [
(fetchurl {
name = "loader-prefer-winedllpath.patch";
url = "https://raw.githubusercontent.com/flathub/org.vinegarhq.Vinegar/3e07606350d803fa386eb4c358836a230819380d/patches/wine/loader-prefer-winedllpath.patch";
hash = "sha256-89wnr2rIbyw490hHwckB9g1GKCXm6BERnplfwEUlNOg=";
})
];
});
in
buildGoModule rec {
pname = "vinegar";
version = "1.7.8";

src = fetchFromGitHub {
owner = "vinegarhq";
repo = "vinegar";
rev = "v${version}";
hash = "sha256-qyBYPBXQgjnGA2LnghPFOd0AO6+sQcZPzPI0rlJvGHE=";
};

vendorHash = "sha256-SDJIoZf/Doa/NrEBRL1WXvz+fyTDGRyG0bvQ0S8A+KA=";

nativeBuildInputs = [
pkg-config
makeBinaryWrapper
];

buildInputs = [
xorg.libX11
xorg.libXcursor
xorg.libXfixes
wayland
vulkan-headers
wine
libGL
libxkbcommon
];

ldflags = [
"-s"
"-w"
];

makeFlags = [
"PREFIX=${placeholder "out"}"
];

postInstall = ''
wrapProgram $out/bin/vinegar \
--prefix PATH : ${lib.makeBinPath [ wine ]}
'';

passthru.updateScript = nix-update-script { };

meta = {
description = "Open-source, minimal, configurable, fast bootstrapper for running Roblox on Linux";
homepage = "https://github.com/vinegarhq/vinegar";
changelog = "https://github.com/vinegarhq/vinegar/releases/tag/v${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
mainProgram = "vinegar";
platforms = [ "x86_64-linux" ];
};
}
1 change: 0 additions & 1 deletion pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,6 @@ mapAliases {
vimHugeX = vim-full; # Added 2022-12-04
vim_configurable = vim-full; # Added 2022-12-04
vinagre = throw "'vinagre' has been removed as it has been archived upstream. Consider using 'gnome-connections' or 'remmina' instead"; # Added 2024-09-14
vinegar = throw "'vinegar' was removed due to being blocked by Roblox, rendering the package useless"; # Added 2024-08-23
libviperfx = throw "'libviperfx' was removed as it is broken and not maintained upstream"; # Added 2024-12-16
viper4linux-gui = throw "'viper4linux-gui' was removed as it is broken and not maintained upstream"; # Added 2024-12-16
viper4linux = throw "'viper4linux' was removed as it is broken and not maintained upstream"; # Added 2024-12-16
Expand Down

0 comments on commit 76b5d1a

Please sign in to comment.