2009-02-25 16:05:13 +00:00
|
|
|
{stdenv, fetchurl, python, cups}:
|
|
|
|
|
2010-03-25 13:36:42 +00:00
|
|
|
let
|
|
|
|
version = "1.9.49";
|
|
|
|
in
|
2009-02-25 16:05:13 +00:00
|
|
|
stdenv.mkDerivation {
|
2010-03-25 13:36:42 +00:00
|
|
|
name = "pycups-${version}";
|
2009-02-25 16:05:13 +00:00
|
|
|
src = fetchurl {
|
2010-03-25 13:36:42 +00:00
|
|
|
url = "http://cyberelk.net/tim/data/pycups/pycups-${version}.tar.bz2";
|
|
|
|
sha256 = "1gpp28sknjw5z4mzhaifc6hkfrlbm2y6w870q47ia8amnm05d3pk";
|
2009-02-25 16:05:13 +00:00
|
|
|
};
|
2010-03-25 13:36:42 +00:00
|
|
|
buildPhase = "";
|
|
|
|
installPhase = ''
|
|
|
|
CFLAGS=-DVERSION=\\\"${version}\\\" python ./setup.py install --prefix $out
|
|
|
|
'';
|
2009-02-25 16:05:13 +00:00
|
|
|
buildInputs = [ python cups ];
|
|
|
|
}
|