1{ stdenv, fetchurl, python, cups }:
2
3let version = "1.9.68"; in
4
5stdenv.mkDerivation {
6 name = "pycups-${version}";
7
8 src = fetchurl {
9 url = "http://cyberelk.net/tim/data/pycups/pycups-${version}.tar.bz2";
10 sha256 = "1i1ph9k1wampa7r6mgc30a99w0zjmxhvcxjxrgjqa5vdknynqd24";
11 };
12
13 installPhase = ''
14 CFLAGS=-DVERSION=\\\"${version}\\\" python ./setup.py install --prefix $out
15 '';
16
17 buildInputs = [ python cups ];
18}