lol
1{ lib, stdenv, callPackage, perl, which, coreutils, zenity, curl
2, cabextract, unzip, p7zip, gnused, gnugrep, bash } :
3
4stdenv.mkDerivation rec {
5 name = "winetricks-${src.version}";
6
7 src = (callPackage ./sources.nix {}).winetricks;
8
9 buildInputs = [ perl which ];
10
11 # coreutils is for sha1sum
12 pathAdd = lib.makeBinPath [
13 perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash
14 ];
15
16 makeFlags = [ "PREFIX=$(out)" ];
17
18 doCheck = false; # requires "bashate"
19
20 postInstall = ''
21 sed -i \
22 -e '2i PATH="${pathAdd}:$PATH"' \
23 "$out/bin/winetricks"
24 '';
25
26 meta = {
27 description = "A script to install DLLs needed to work around problems in Wine";
28 license = lib.licenses.lgpl21;
29 homepage = "https://github.com/Winetricks/winetricks";
30 platforms = with lib.platforms; linux;
31 };
32}