Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 65 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 callPackage, 5 perl, 6 which, 7 coreutils, 8 zenity, 9 curl, 10 cabextract, 11 unzip, 12 p7zip, 13 gnused, 14 gnugrep, 15 bash, 16}: 17 18stdenv.mkDerivation rec { 19 pname = "winetricks"; 20 version = src.version; 21 22 src = (callPackage ./sources.nix { }).winetricks; 23 24 buildInputs = [ 25 perl 26 which 27 ]; 28 29 # coreutils is for sha1sum 30 pathAdd = lib.makeBinPath [ 31 perl 32 which 33 coreutils 34 zenity 35 curl 36 cabextract 37 unzip 38 p7zip 39 gnused 40 gnugrep 41 bash 42 ]; 43 44 makeFlags = [ "PREFIX=$(out)" ]; 45 46 doCheck = false; # requires "bashate" 47 48 postInstall = '' 49 sed -i \ 50 -e '2i PATH="${pathAdd}:$PATH"' \ 51 "$out/bin/winetricks" 52 ''; 53 54 passthru = { 55 inherit (src) updateScript; 56 }; 57 58 meta = { 59 description = "Script to install DLLs needed to work around problems in Wine"; 60 mainProgram = "winetricks"; 61 license = lib.licenses.lgpl21; 62 homepage = "https://github.com/Winetricks/winetricks"; 63 platforms = with lib.platforms; linux ++ darwin; 64 }; 65}