Skip to content

Commit

Permalink
winetricks-git: init at rev72b934e1e10c041ec6986f5f2fb4f143d8f6b941 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LovingMelody authored Sep 10, 2024
1 parent ec0bcac commit 5e1b352
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
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];
};
}

0 comments on commit 5e1b352

Please sign in to comment.