2011-07-21 22:14:17 +02:00
|
|
|
{ stdenv, fetchurl, python, cups }:
|
|
|
|
|
2014-11-14 14:30:53 +01:00
|
|
|
let version = "1.9.68"; 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";
|
2014-11-14 14:30:53 +01:00
|
|
|
sha256 = "1i1ph9k1wampa7r6mgc30a99w0zjmxhvcxjxrgjqa5vdknynqd24";
|
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 ];
|
|
|
|
}
|