587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
19 lines
365 B
Nix
19 lines
365 B
Nix
{
|
|
lib,
|
|
runCommand,
|
|
makeWrapper,
|
|
python3,
|
|
nix,
|
|
}:
|
|
|
|
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 ]}
|
|
''
|