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