nixpkgs/pkgs/applications/emulators/wine/winetricks.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
903 B
Nix
Raw Normal View History

{ lib, stdenv, callPackage, perl, which, coreutils, zenity, curl
, cabextract, unzip, p7zip, gnused, gnugrep, bash } :
stdenv.mkDerivation rec {
2022-01-22 17:13:29 +00:00
pname = "winetricks";
version = src.version;
src = (callPackage ./sources.nix {}).winetricks;
buildInputs = [ perl which ];
2015-02-18 23:12:09 +00:00
# coreutils is for sha1sum
pathAdd = lib.makeBinPath [
perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash
];
2015-02-18 23:12:09 +00:00
makeFlags = [ "PREFIX=$(out)" ];
doCheck = false; # requires "bashate"
2015-02-18 23:12:09 +00:00
postInstall = ''
sed -i \
-e '2i PATH="${pathAdd}:$PATH"' \
"$out/bin/winetricks"
'';
2022-12-12 15:10:46 +00:00
passthru = {
inherit (src) updateScript;
};
meta = {
description = "A script to install DLLs needed to work around problems in Wine";
2021-01-15 13:21:58 +00:00
license = lib.licenses.lgpl21;
homepage = "https://github.com/Winetricks/winetricks";
2021-01-15 13:21:58 +00:00
platforms = with lib.platforms; linux;
};
}