forked from mirrors/nixpkgs
Fresh XScreensaver (5.05)
svn path=/nixpkgs/trunk/; revision=12104
This commit is contained in:
parent
7c840c0f0f
commit
db24f5948f
40
pkgs/applications/graphics/xscreensaver/5.05.nix
Normal file
40
pkgs/applications/graphics/xscreensaver/5.05.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
args : with args; let localDefs = builderDefs (args // {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = http://www.jwz.org/xscreensaver/xscreensaver-5.05.tar.gz;
|
||||
sha256 = "06l2vibjddszwpb9lflgflf0pn6rwpf609j2vdry3swh35pkcr1w";
|
||||
};
|
||||
useConfig = true;
|
||||
reqsList = [
|
||||
["true" "libX11" "gtk" "pkgconfig" "bc" "perl" "intltool" "libXmu"]
|
||||
["GL" "mesa"]
|
||||
["GUI" "gtk" "libxml2" "libglade"]
|
||||
["jpeg" "libjpeg"]
|
||||
["false"]
|
||||
];
|
||||
configFlags = [
|
||||
"GL" " --with-gl "
|
||||
"gdkpixbuf" " --with-pixbuf "
|
||||
"DPMS" " --with-dpms "
|
||||
"true" (" --with-x-app-defaults=\$out/share/xscreensaver/app-defaults "+
|
||||
" --with-hackdir=\$out/share/xscreensaver-hacks ")
|
||||
];
|
||||
}) null; /* null is a terminator for sumArgs */
|
||||
in with localDefs;
|
||||
let
|
||||
preConfigure = FullDepEntry ("
|
||||
sed -e 's%@GTK_DATADIR@%@datadir@% ; s%@PO_DATADIR@%@datadir@%' "+
|
||||
"-i driver/Makefile.in po/Makefile.in.in;
|
||||
") [minInit doUnpack];
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xscreensaver-"+version;
|
||||
builder = writeScript (name + "-builder")
|
||||
(textClosure localDefs [preConfigure doConfigure doMakeInstall doForceShare doPropagate]);
|
||||
meta = {
|
||||
description = "
|
||||
The X screensaver daemon. Run xscreensaver-demo to configure.
|
||||
";
|
||||
inherit src;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue