aws-lc: 1.39.0 -> 1.42.0 (#369942)
[NixPkgs.git] / pkgs / build-support / dlang / dub-to-nix / default.nix
blob87db7eed093315f7884a812e7d6fc061e80dd54d
2   lib,
3   runCommand,
4   makeWrapper,
5   python3,
6   nix,
7   nix-prefetch-git,
8 }:
10 let
11   binPath = lib.makeBinPath [
12     nix
13     nix-prefetch-git
14   ];
16 runCommand "dub-to-nix"
17   {
18     nativeBuildInputs = [ makeWrapper ];
19     buildInputs = [ python3 ];
20   }
21   ''
22     install -Dm755 ${./dub-to-nix.py} "$out/bin/dub-to-nix"
23     patchShebangs "$out/bin/dub-to-nix"
24     wrapProgram "$out/bin/dub-to-nix" \
25         --prefix PATH : ${binPath}
26   ''