571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
905 B
Nix
29 lines
905 B
Nix
{ stdenv, lib, fetchurl, cups, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cups-dymo";
|
|
version = "1.4.0.5";
|
|
|
|
# exposed version and 'real' version may differ
|
|
# in this case the download states '1.4.0' but the real version is '1.4.0.5'
|
|
# this has the potential to break future builds
|
|
dl-name = "dymo-cups-drivers-1.4.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.dymo.com/dymo/Software/Download%20Drivers/Linux/Download/${dl-name}.tar.gz";
|
|
sha256 = "0wagsrz3q7yrkzb5ws0m5faq68rqnqfap9p98sgk5jl6x7krf1y6";
|
|
};
|
|
|
|
buildInputs = [ cups ];
|
|
patches = [ ./fix-includes.patch ];
|
|
|
|
makeFlags = [ "cupsfilterdir=$(out)/lib/cups/filter" "cupsmodeldir=$(out)/share/cups/model" ];
|
|
|
|
meta = {
|
|
description = "CUPS Linux drivers and SDK for DYMO printers";
|
|
homepage = "https://www.dymo.com/";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ makefu ];
|
|
};
|
|
}
|