about summary refs log tree commit diff
path: root/pkgs/by-name/wa/waf/hook.nix
blob: f97a4ed221466f4ca44e77f6e0aaac5bd69fab85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib
, pkgs
, makeSetupHook
, waf
}:

makeSetupHook {
  name = "waf-setup-hook";

  substitutions = {
    # Sometimes the upstream provides its own waf file; in order to honor it,
    # waf is not inserted into propagatedBuildInputs, rather it is inserted
    # directly
    inherit waf;
  };

  meta = {
    description = "Setup hook for using Waf in Nixpkgs";
    inherit (waf.meta) maintainers platforms broken;
  };
} ./setup-hook.sh