Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
72 lines
1.1 KiB
Nix
72 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
callPackage,
|
|
perl,
|
|
which,
|
|
coreutils,
|
|
zenity,
|
|
curl,
|
|
cabextract,
|
|
unzip,
|
|
p7zip,
|
|
gnused,
|
|
gnugrep,
|
|
bash,
|
|
gawk,
|
|
gnutar,
|
|
gzip,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "winetricks";
|
|
version = src.version;
|
|
|
|
src = (callPackage ./sources.nix { }).winetricks;
|
|
|
|
buildInputs = [
|
|
perl
|
|
which
|
|
];
|
|
|
|
# coreutils is for sha1sum
|
|
pathAdd = lib.makeBinPath [
|
|
perl
|
|
which
|
|
coreutils
|
|
zenity
|
|
curl
|
|
cabextract
|
|
unzip
|
|
p7zip
|
|
gnused
|
|
gnugrep
|
|
bash
|
|
gawk
|
|
gnutar
|
|
gzip
|
|
];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
doCheck = false; # requires "bashate"
|
|
|
|
postInstall = ''
|
|
sed -i \
|
|
-e '2i PATH="${pathAdd}:$PATH"' \
|
|
"$out/bin/winetricks"
|
|
'';
|
|
|
|
passthru = {
|
|
inherit (src) updateScript;
|
|
};
|
|
|
|
meta = {
|
|
description = "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 ++ darwin;
|
|
};
|
|
}
|