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