summaryrefslogtreecommitdiff
path: root/custom/thermoprint.nix
blob: 733da6c3f3a801d8f82eaceda9025d36930d3e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv ? (import <nixpkgs> {}).stdenv
, haskellPackages ? (import <nixpkgs> {}).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; });
}