1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

vncrec: reimplement using mkDerivation

This commit is contained in:
Joachim Fasting 2015-06-15 14:29:42 +02:00
parent 2a752ac760
commit f40e36d213
2 changed files with 19 additions and 29 deletions

View file

@ -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 = [
];
};
}

View file

@ -3342,7 +3342,11 @@ let
vnc2flv = callPackage ../tools/video/vnc2flv {};
vncrec = builderDefsPackage (callPackage ../tools/video/vncrec) {};
vncrec = callPackage ../tools/video/vncrec {
inherit (xlibs) imake libX11 xproto gccmakedep libXt
libXmu libXaw libXext xextproto libSM libICE libXpm
libXp;
};
vobcopy = callPackage ../tools/cd-dvd/vobcopy { };