Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init: winetricks-git rev72b934e1e10c041ec6986f5f2fb4f143d8f6b941 #201

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions npins/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@
"revision": "2a498afc6287927f046cf165061e5624fc398bbb",
"url": "https://github.com/Kron4ek/wine-tkg/archive/2a498afc6287927f046cf165061e5624fc398bbb.tar.gz",
"hash": "0xvr7bxalakgnpm5kwbfgrq090cqmzi0ih9rmj0q9xwhf9h37024"
},
"winetricks": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "winetricks",
"repo": "winetricks"
},
"branch": "master",
"revision": "72b934e1e10c041ec6986f5f2fb4f143d8f6b941",
"url": "https://github.com/winetricks/winetricks/archive/72b934e1e10c041ec6986f5f2fb4f143d8f6b941.tar.gz",
"hash": "1z1ab8sikx0rmnbyhximfifd7zjwwa1h1dim4m0grg2kwz4q0jz3"
}
},
"version": 3
Expand Down
2 changes: 2 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@

wine-tkg = wineBuilder "wine-tkg" "full" {};

winetricks-git = pkgs.callPackage ./winetricks-git {inherit pins;};

wineprefix-preparer = pkgs.callPackage ./wineprefix-preparer {inherit (config.packages) dxvk-w32 vkd3d-proton-w32 dxvk-w64 vkd3d-proton-w64;};
};
};
Expand Down
64 changes: 64 additions & 0 deletions pkgs/winetricks-git/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
pins,
lib,
stdenv,
perl,
which,
coreutils,
zenity,
curl,
cabextract,
unzip,
p7zip,
gnused,
gnugrep,
bash,
}: let
inherit (pins) winetricks;
in
stdenv.mkDerivation rec {
pname = "winetricks";
version = "git+${winetricks.revision}";

src = winetricks;

buildInputs = [perl which];

# coreutils is for sha1sum
pathAdd = lib.makeBinPath [
perl
which
coreutils
zenity
curl
cabextract
unzip
p7zip
gnused
gnugrep
bash
];

makeFlags = ["PREFIX=$(out)" "VERSION=development"];

doCheck = false; # requires "bashate"

postInstall = ''
sed -i \
-e '2i PATH="${pathAdd}:$PATH"' \
"$out/bin/winetricks"
'';

passthru = {
inherit (src) updateScript;
};

meta = {
description = "A script to install DLLs needed to work around problems in Wine";
mainProgram = "winetricks";
license = lib.licenses.lgpl21;
homepage = "https://github.com/Winetricks/winetricks";
platforms = with lib.platforms; linux;
maintainers = with lib.maintainers; [fuzen];
};
}
Loading