nixpkgs/pkgs/development/tools/swiftpm2nix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
647 B
Nix
Raw Normal View History

{ lib, stdenv, callPackage, makeWrapper, jq, nix-prefetch-git }:
2022-07-30 09:38:37 +00:00
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 { };
2022-07-30 09:38:37 +00:00
meta = {
description = "Generate a Nix expression to fetch swiftpm dependencies";
maintainers = with lib.maintainers; [ dtzWill trepetti dduan trundle stephank ];
platforms = lib.platforms.all;
};
}