about summary refs log tree commit diff
path: root/default.nix
blob: 6959e743d685a36448b252f8a8dcdef9a3e584c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ pkgs ? import <nixpkgs> { } }:

assert pkgs.lib.versionAtLeast pkgs.libschrift.version "0.10.1";

let
  gi = pkgs.nix-gitignore;

  buchstabensuppe = { stdenv, utf8proc, harfbuzz, libschrift, redo-c }:
    stdenv.mkDerivation rec {
      pname = "buchstabensuppe";
      version = "unstable";

      src = builtins.path {
        path = ./.;
        name = "buchstabensuppe-src";
        filter = gi.gitignoreFilter (builtins.readFile ./.gitignore) ./.;
      };

      makeFlags = [ "PREFIX=${placeholder "out"}" ];

      nativeBuildInputs = [ redo-c ];
      buildInputs = [ utf8proc harfbuzz libschrift ];

      doCheck = true;
    };
in

pkgs.callPackage buchstabensuppe { }