Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, callPackage, makeWrapper, jq, nix-prefetch-git }: 2 3stdenv.mkDerivation { 4 name = "swiftpm2nix"; 5 6 nativeBuildInputs = [ makeWrapper ]; 7 8 dontUnpack = true; 9 10 installPhase = '' 11 install -vD ${./swiftpm2nix.sh} $out/bin/swiftpm2nix 12 wrapProgram $out/bin/$name \ 13 --prefix PATH : ${lib.makeBinPath [ jq nix-prefetch-git ]} \ 14 ''; 15 16 preferLocalBuild = true; 17 18 passthru = callPackage ./support.nix { }; 19 20 meta = { 21 description = "Generate a Nix expression to fetch swiftpm dependencies"; 22 maintainers = with lib.maintainers; [ dtzWill trepetti dduan trundle stephank ]; 23 platforms = lib.platforms.all; 24 }; 25}