core/pkgs/build-support/dlang/dub-to-nix/default.nix

12 lines
335 B
Nix
Raw Normal View History

2024-05-13 21:24:10 +00:00
{ lib, runCommand, makeWrapper, python3, nix, }:
2024-05-02 00:46:19 +00:00
2024-05-13 21:24:10 +00:00
runCommand "dub-to-nix" {
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python3 ];
} ''
install -Dm755 ${./dub-to-nix.py} "$out/bin/dub-to-nix"
patchShebangs "$out/bin/dub-to-nix"
wrapProgram "$out/bin/dub-to-nix" \
--prefix PATH : ${lib.makeBinPath [ nix ]}
''