summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycups/default.nix
blob: a61106f476d72ec81eb6a73a6530eccb6e1760cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ stdenv, fetchurl, python, cups }:

let version = "1.9.57"; in

stdenv.mkDerivation {
  name = "pycups-${version}";
  
  src = fetchurl {
    url = "http://cyberelk.net/tim/data/pycups/pycups-${version}.tar.bz2";
    sha256 = "12m3lh4nmfp6yn6sqlskl9gb1mfiwx42m8dnms6j6xc2nimn5k14";
  };

  installPhase = ''
    CFLAGS=-DVERSION=\\\"${version}\\\" python ./setup.py install --prefix $out
  '';
  
  buildInputs = [ python cups ];
}