From baf9e2c7ae5ef4706122a19a7ff5236fdfb9defa Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 17 Oct 2015 21:40:51 +0200 Subject: Added thermoprint-servant to bragi --- custom/thermoprint | 1 + custom/thermoprint.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 160000 custom/thermoprint create mode 100644 custom/thermoprint.nix (limited to 'custom') diff --git a/custom/thermoprint b/custom/thermoprint new file mode 160000 index 00000000..e65e1eaa --- /dev/null +++ b/custom/thermoprint @@ -0,0 +1 @@ +Subproject commit e65e1eaac335a4738abb9e8ee8da7a229f96c2c0 diff --git a/custom/thermoprint.nix b/custom/thermoprint.nix new file mode 100644 index 00000000..733da6c3 --- /dev/null +++ b/custom/thermoprint.nix @@ -0,0 +1,23 @@ +{ stdenv ? (import {}).stdenv +, haskellPackages ? (import {}).haskellPackages +}: + +let + override = stdenv.lib.overrideDerivation; + callPackage = haskellPackages.callPackage; + tprint = callPackage ./thermoprint/tprint/tprint.nix { + inherit thermoprint-servant thermoprint bbcode; + }; + bbcode = callPackage ./thermoprint/bbcode/bbcode.nix { + inherit thermoprint; + }; + thermoprint-servant = callPackage ./thermoprint/servant/servant.nix { + inherit thermoprint; + }; + thermoprint = callPackage ./thermoprint/thermoprint/thermoprint.nix {}; +in rec { + tprint = override tprint (oldAttrs: { src = ./thermoprint/tprint; }); + bbcode = override bbcode (oldAttrs: { src = ./thermoprint/bbcode; }); + thermoprint-servant = override thermoprint-servant (oldAttrs: { src = ./thermoprint/servant; }); + thermoprint = override thermoprint (oldAttrs: { src = ./thermoprint/thermoprint; }); +} -- cgit v1.2.3