From 41e54e13accbae523f1ad46eba36a6731cfce596 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 10 Oct 2024 16:16:24 -0300 Subject: [PATCH] vinegar: init at 1.7.8 --- pkgs/by-name/vi/vinegar/package.nix | 81 +++++++++++++++++++++++++++++ pkgs/top-level/aliases.nix | 1 - 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 pkgs/by-name/vi/vinegar/package.nix diff --git a/pkgs/by-name/vi/vinegar/package.nix b/pkgs/by-name/vi/vinegar/package.nix new file mode 100644 index 0000000000000..b88e26336c064 --- /dev/null +++ b/pkgs/by-name/vi/vinegar/package.nix @@ -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" ]; + }; +} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 74e47c2d0be7c..f0d1d5261714b 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1360,7 +1360,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