Skip to content

Commit 76b5d1a

Browse files
vinegar: init at 1.7.8 (#347630)
2 parents 35fffcd + 41e54e1 commit 76b5d1a

File tree

2 files changed

+81
-1
lines changed

2 files changed

+81
-1
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
fetchurl,
6+
pkg-config,
7+
xorg,
8+
wayland,
9+
vulkan-headers,
10+
wine64Packages,
11+
libGL,
12+
libxkbcommon,
13+
makeBinaryWrapper,
14+
nix-update-script,
15+
}:
16+
let
17+
wine = (wine64Packages.staging.override { embedInstallers = true; }).overrideAttrs (oldAttrs: {
18+
patches = oldAttrs.patches or [ ] ++ [
19+
(fetchurl {
20+
name = "loader-prefer-winedllpath.patch";
21+
url = "https://raw.githubusercontent.com/flathub/org.vinegarhq.Vinegar/3e07606350d803fa386eb4c358836a230819380d/patches/wine/loader-prefer-winedllpath.patch";
22+
hash = "sha256-89wnr2rIbyw490hHwckB9g1GKCXm6BERnplfwEUlNOg=";
23+
})
24+
];
25+
});
26+
in
27+
buildGoModule rec {
28+
pname = "vinegar";
29+
version = "1.7.8";
30+
31+
src = fetchFromGitHub {
32+
owner = "vinegarhq";
33+
repo = "vinegar";
34+
rev = "v${version}";
35+
hash = "sha256-qyBYPBXQgjnGA2LnghPFOd0AO6+sQcZPzPI0rlJvGHE=";
36+
};
37+
38+
vendorHash = "sha256-SDJIoZf/Doa/NrEBRL1WXvz+fyTDGRyG0bvQ0S8A+KA=";
39+
40+
nativeBuildInputs = [
41+
pkg-config
42+
makeBinaryWrapper
43+
];
44+
45+
buildInputs = [
46+
xorg.libX11
47+
xorg.libXcursor
48+
xorg.libXfixes
49+
wayland
50+
vulkan-headers
51+
wine
52+
libGL
53+
libxkbcommon
54+
];
55+
56+
ldflags = [
57+
"-s"
58+
"-w"
59+
];
60+
61+
makeFlags = [
62+
"PREFIX=${placeholder "out"}"
63+
];
64+
65+
postInstall = ''
66+
wrapProgram $out/bin/vinegar \
67+
--prefix PATH : ${lib.makeBinPath [ wine ]}
68+
'';
69+
70+
passthru.updateScript = nix-update-script { };
71+
72+
meta = {
73+
description = "Open-source, minimal, configurable, fast bootstrapper for running Roblox on Linux";
74+
homepage = "https://github.com/vinegarhq/vinegar";
75+
changelog = "https://github.com/vinegarhq/vinegar/releases/tag/v${version}";
76+
license = lib.licenses.gpl3Only;
77+
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
78+
mainProgram = "vinegar";
79+
platforms = [ "x86_64-linux" ];
80+
};
81+
}

pkgs/top-level/aliases.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,6 @@ mapAliases {
13591359
vimHugeX = vim-full; # Added 2022-12-04
13601360
vim_configurable = vim-full; # Added 2022-12-04
13611361
vinagre = throw "'vinagre' has been removed as it has been archived upstream. Consider using 'gnome-connections' or 'remmina' instead"; # Added 2024-09-14
1362-
vinegar = throw "'vinegar' was removed due to being blocked by Roblox, rendering the package useless"; # Added 2024-08-23
13631362
libviperfx = throw "'libviperfx' was removed as it is broken and not maintained upstream"; # Added 2024-12-16
13641363
viper4linux-gui = throw "'viper4linux-gui' was removed as it is broken and not maintained upstream"; # Added 2024-12-16
13651364
viper4linux = throw "'viper4linux' was removed as it is broken and not maintained upstream"; # Added 2024-12-16

0 commit comments

Comments
 (0)