diff --git a/flake.lock b/flake.lock index 06f69b8..eba0dea 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1706487304, - "narHash": "sha256-LE8lVX28MV2jWJsidW13D2qrHU/RUUONendL2Q/WlJg=", + "lastModified": 1707205916, + "narHash": "sha256-fmRJilYGlB7VCt3XsdYxrA0u8e/K84O5xYucerUY0iM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "90f456026d284c22b3e3497be980b2e47d0b28ac", + "rev": "8cc79aa39bbc6eaedaf286ae655b224c71e02907", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 634d350..5d9fd47 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,7 @@ attic = final.callPackage ./packages/attic { }; attic-client = final.attic.override { clientOnly = true; }; celeste64 = final.callPackage ./packages/celeste64 { }; + cups-dymo = final.callPackage ./packages/cups-dymo { }; ipsw = final.callPackage ./packages/ipsw { }; jlink = final.callPackage ./packages/jlink { }; zephyrPackages = final.callPackage ./packages/zephyr { }; diff --git a/packages/cups-dymo/default.nix b/packages/cups-dymo/default.nix new file mode 100644 index 0000000..6b32cda --- /dev/null +++ b/packages/cups-dymo/default.nix @@ -0,0 +1,37 @@ +{ stdenv, lib, fetchFromGitHub, autoconf, automake, boost, cups, ... }: + +stdenv.mkDerivation { + pname = "cups-dymo"; + version = "1.4.0.5-2024-02-07"; + + src = fetchFromGitHub { + owner = "matthiasbock"; + repo = "dymo-cups-drivers"; + rev = "eb2ad031114f4aaaf9b8d576d9596b1a9585c434"; + hash = "sha256-IwdTJxCOKyqsl1B5UQqCDpepz04U4VF+G3mqaJTQJ/w="; + }; + + nativeBuildInputs = [ autoconf automake ]; + + buildInputs = [ boost cups ]; + + preConfigure = '' + touch NEWS AUTHORS INSTALL README ChangeLog + autoheader + aclocal + automake --add-missing + autoconf + ''; + + 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.gpl2; + maintainers = with lib.maintainers; [ makefu ]; + }; +}