2011-07-21 21:14:17 +01:00
|
|
|
{ stdenv, fetchurl, python, cups }:
|
|
|
|
|
|
|
|
let version = "1.9.57"; in
|
2009-02-25 16:05:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-03-25 13:36:42 +00:00
|
|
|
name = "pycups-${version}";
|
2011-07-21 21:14:17 +01:00
|
|
|
|
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";
|
2011-07-21 21:14:17 +01:00
|
|
|
sha256 = "12m3lh4nmfp6yn6sqlskl9gb1mfiwx42m8dnms6j6xc2nimn5k14";
|
2009-02-25 16:05:13 +00:00
|
|
|
};
|
2011-07-21 21:14:17 +01:00
|
|
|
|
2010-03-25 13:36:42 +00:00
|
|
|
installPhase = ''
|
|
|
|
CFLAGS=-DVERSION=\\\"${version}\\\" python ./setup.py install --prefix $out
|
|
|
|
'';
|
2011-07-21 21:14:17 +01:00
|
|
|
|
2009-02-25 16:05:13 +00:00
|
|
|
buildInputs = [ python cups ];
|
|
|
|
}
|