nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchurl,
5 cups,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "cups-dymo";
10 version = "1.4.0.5";
11
12 # exposed version and 'real' version may differ
13 # in this case the download states '1.4.0' but the real version is '1.4.0.5'
14 # this has the potential to break future builds
15 dl-name = "dymo-cups-drivers-1.4.0";
16
17 src = fetchurl {
18 url = "http://download.dymo.com/dymo/Software/Download%20Drivers/Linux/Download/${dl-name}.tar.gz";
19 sha256 = "0wagsrz3q7yrkzb5ws0m5faq68rqnqfap9p98sgk5jl6x7krf1y6";
20 };
21
22 buildInputs = [ cups ];
23 patches = [ ./fix-includes.patch ];
24
25 makeFlags = [
26 "cupsfilterdir=$(out)/lib/cups/filter"
27 "cupsmodeldir=$(out)/share/cups/model"
28 ];
29
30 meta = {
31 description = "CUPS Linux drivers and SDK for DYMO printers";
32 homepage = "https://www.dymo.com/";
33 license = lib.licenses.gpl2Plus;
34 maintainers = with lib.maintainers; [ makefu ];
35 };
36}