Compare commits
3 commits
88147ecc68
...
9fb7e53fe2
Author | SHA1 | Date | |
---|---|---|---|
9fb7e53fe2 | |||
2945d350e5 | |||
65808fa92a |
4 changed files with 57 additions and 1 deletions
|
@ -11,6 +11,9 @@ with inputs;
|
||||||
# Yazi Gruvbox theme.
|
# Yazi Gruvbox theme.
|
||||||
yazi-flavour-gruvbox-dark = prev.pkgs.callPackage ./packages/yazi-flavour-gruvbox {};
|
yazi-flavour-gruvbox-dark = prev.pkgs.callPackage ./packages/yazi-flavour-gruvbox {};
|
||||||
|
|
||||||
|
# Dymo label printer drivers.
|
||||||
|
cups-dymo = prev.pkgs.callPackage ./packages/cups-dymo {};
|
||||||
|
|
||||||
# Latest FluffyChat.
|
# Latest FluffyChat.
|
||||||
fluffychat =
|
fluffychat =
|
||||||
(import nixpkgs-pr-fluffychat
|
(import nixpkgs-pr-fluffychat
|
||||||
|
|
34
packages/cups-dymo/default.nix
Normal file
34
packages/cups-dymo/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
autoreconfHook,
|
||||||
|
fetchgit,
|
||||||
|
boost,
|
||||||
|
cups,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
srcRoot = fetchgit {
|
||||||
|
url = "https://github.com/dymosoftware/Drivers.git";
|
||||||
|
hash = "sha256-3fRALvyGYVpDL0HyUnjDi+TDTX9yeQG6LfZtNuv42pY=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "cups-dymo";
|
||||||
|
version = "1.5.0";
|
||||||
|
|
||||||
|
src = "${srcRoot}/LW5xx_Linux";
|
||||||
|
|
||||||
|
nativeBuildInputs = [autoreconfHook boost cups];
|
||||||
|
makeFlags = [
|
||||||
|
"cupsfilterdir=$(out)/lib/cups/filter"
|
||||||
|
"cupsmodeldir=$(out)/share/cups/model"
|
||||||
|
];
|
||||||
|
|
||||||
|
patches = [./include-ctime.patch];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "CUPS Linux drivers and SDK for DYMO printers";
|
||||||
|
homepage = "https://github.com/dymosoftware/Drivers";
|
||||||
|
license = lib.licenses.gpl2Plus;
|
||||||
|
};
|
||||||
|
}
|
19
packages/cups-dymo/include-ctime.patch
Normal file
19
packages/cups-dymo/include-ctime.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
diff --git a/src/lm/LabelManagerLanguageMonitorV2.cpp b/src/lm/LabelManagerLanguageMonitorV2.cpp
|
||||||
|
index 4ad5b99..b48b30d 100644
|
||||||
|
--- a/src/lm/LabelManagerLanguageMonitorV2.cpp
|
||||||
|
+++ b/src/lm/LabelManagerLanguageMonitorV2.cpp
|
||||||
|
@@ -21,6 +21,7 @@
|
||||||
|
#include "LabelManagerLanguageMonitorV2.h"
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
+#include <ctime>
|
||||||
|
|
||||||
|
namespace DymoPrinterDriver
|
||||||
|
{
|
||||||
|
@@ -273,4 +274,4 @@ void CLabelManagerLanguageMonitorV2::ReprintPage()
|
||||||
|
_printEnvironment.WriteData(_pageData);
|
||||||
|
}
|
||||||
|
|
||||||
|
-};
|
||||||
|
\ No newline at end of file
|
||||||
|
+};
|
|
@ -135,7 +135,7 @@ with lib; {
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing = {
|
services.printing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
drivers = [pkgs.brlaser];
|
drivers = [pkgs.brlaser pkgs.cups-dymo];
|
||||||
};
|
};
|
||||||
|
|
||||||
# If you don't set this Wireguard won't work.
|
# If you don't set this Wireguard won't work.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue