depot/third_party/nixpkgs/pkgs/development/tools/swiftpm2nix/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

25 lines
647 B
Nix

{ lib, stdenv, callPackage, makeWrapper, jq, nix-prefetch-git }:
stdenv.mkDerivation {
name = "swiftpm2nix";
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;
installPhase = ''
install -vD ${./swiftpm2nix.sh} $out/bin/swiftpm2nix
wrapProgram $out/bin/$name \
--prefix PATH : ${lib.makeBinPath [ jq nix-prefetch-git ]} \
'';
preferLocalBuild = true;
passthru = callPackage ./support.nix { };
meta = {
description = "Generate a Nix expression to fetch swiftpm dependencies";
maintainers = with lib.maintainers; [ dtzWill trepetti dduan trundle stephank ];
platforms = lib.platforms.all;
};
}