about summary refs log tree commit diff
path: root/default.nix
blob: 2c0ed71240198e5c5f0b1e39f4478969ef9eaea7 (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
{ pkgs ? import <nixpkgs> { } }:

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 { }