diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-06-15 14:29:42 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-11-24 14:45:15 +0100 |
commit | f40e36d213a813420735701e10b723ae1e3e4ab7 (patch) | |
tree | 8ab49c2f6418cb176174e474d42b7205490c6480 /pkgs/tools/video | |
parent | 2a752ac760be873b114c714580aa9f65608d03c0 (diff) |
vncrec: reimplement using mkDerivation
Diffstat (limited to 'pkgs/tools/video')
-rw-r--r-- | pkgs/tools/video/vncrec/default.nix | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/pkgs/tools/video/vncrec/default.nix b/pkgs/tools/video/vncrec/default.nix index e37d1c6f11ff..4654d5902cb0 100644 --- a/pkgs/tools/video/vncrec/default.nix +++ b/pkgs/tools/video/vncrec/default.nix @@ -1,42 +1,28 @@ -a @ {imake, libX11, xproto, gccmakedep, libXt -, libXmu, libXaw, libXext, xextproto, libSM, libICE, libXpm -, libXp, ...} : -let - fetchurl = a.fetchurl; +{ stdenv, fetchurl, libX11, xproto, imake, gccmakedep, libXt, libXmu +, libXaw, libXext, xextproto, libSM, libICE, libXpm, libXp +}: + +stdenv.mkDerivation rec { + name = "vncrec-0.2"; # version taken from Arch AUR - buildInputs = with a; [ - libX11 xproto imake gccmakedep libXt libXmu libXaw - libXext xextproto libSM libICE libXpm libXp - ]; -in -rec { src = fetchurl { url = "http://ronja.twibright.com/utils/vncrec-twibright.tgz"; sha256 = "1yp6r55fqpdhc8cgrgh9i0mzxmkls16pgf8vfcpng1axr7cigyhc"; }; - inherit buildInputs; - makeFlags = [ - "World" - ]; - installFlags=[ - "BINDIR=/bin/" - "MANDIR=/share/man/man1" - "DESTDIR=$out" - "install.man" - ]; + buildInputs = [ + libX11 xproto imake gccmakedep libXt libXmu libXaw + libXext xextproto libSM libICE libXpm libXp + ]; - phaseNames = ["doXMKMF" "doMakeInstall"]; + buildPhase = ''xmkmf && make World''; - doXMKMF = a.fullDepEntry ('' - xmkmf - '') ["doUnpack" "minInit" "addInputs"]; + installPhase = '' + make DESTDIR=$out BINDIR=/bin MANDIR=/share/man/man1 install install.man + ''; - name = "vncrec-0.2"; # version taken from Arch AUR meta = { description = "VNC recorder"; homepage = http://ronja.twibright.com/utils/vncrec/; - maintainers = [ - ]; }; } |