-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
winetricks-git: init at rev72b934e1e10c041ec6986f5f2fb4f143d8f6b941 (#…
…201)
- Loading branch information
1 parent
ec0bcac
commit 5e1b352
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | ||
}; | ||
} |