vncrec: reimplement using mkDerivation
This commit is contained in:
parent
2a752ac760
commit
f40e36d213
2 changed files with 19 additions and 29 deletions
|
@ -1,42 +1,28 @@
|
||||||
a @ {imake, libX11, xproto, gccmakedep, libXt
|
{ stdenv, fetchurl, libX11, xproto, imake, gccmakedep, libXt, libXmu
|
||||||
, libXmu, libXaw, libXext, xextproto, libSM, libICE, libXpm
|
, libXaw, libXext, xextproto, libSM, libICE, libXpm, libXp
|
||||||
, libXp, ...} :
|
}:
|
||||||
let
|
|
||||||
fetchurl = a.fetchurl;
|
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 {
|
src = fetchurl {
|
||||||
url = "http://ronja.twibright.com/utils/vncrec-twibright.tgz";
|
url = "http://ronja.twibright.com/utils/vncrec-twibright.tgz";
|
||||||
sha256 = "1yp6r55fqpdhc8cgrgh9i0mzxmkls16pgf8vfcpng1axr7cigyhc";
|
sha256 = "1yp6r55fqpdhc8cgrgh9i0mzxmkls16pgf8vfcpng1axr7cigyhc";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit buildInputs;
|
buildInputs = [
|
||||||
makeFlags = [
|
libX11 xproto imake gccmakedep libXt libXmu libXaw
|
||||||
"World"
|
libXext xextproto libSM libICE libXpm libXp
|
||||||
];
|
];
|
||||||
installFlags=[
|
|
||||||
"BINDIR=/bin/"
|
|
||||||
"MANDIR=/share/man/man1"
|
|
||||||
"DESTDIR=$out"
|
|
||||||
"install.man"
|
|
||||||
];
|
|
||||||
|
|
||||||
phaseNames = ["doXMKMF" "doMakeInstall"];
|
buildPhase = ''xmkmf && make World'';
|
||||||
|
|
||||||
doXMKMF = a.fullDepEntry (''
|
installPhase = ''
|
||||||
xmkmf
|
make DESTDIR=$out BINDIR=/bin MANDIR=/share/man/man1 install install.man
|
||||||
'') ["doUnpack" "minInit" "addInputs"];
|
'';
|
||||||
|
|
||||||
name = "vncrec-0.2"; # version taken from Arch AUR
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "VNC recorder";
|
description = "VNC recorder";
|
||||||
homepage = http://ronja.twibright.com/utils/vncrec/;
|
homepage = http://ronja.twibright.com/utils/vncrec/;
|
||||||
maintainers = [
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3342,7 +3342,11 @@ let
|
||||||
|
|
||||||
vnc2flv = callPackage ../tools/video/vnc2flv {};
|
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 { };
|
vobcopy = callPackage ../tools/cd-dvd/vobcopy { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue