at master 661 B view raw
1{ 2 lib, 3 stdenv, 4 callPackage, 5 makeWrapper, 6 jq, 7 nurl, 8}: 9 10stdenv.mkDerivation { 11 name = "swiftpm2nix"; 12 13 nativeBuildInputs = [ makeWrapper ]; 14 15 dontUnpack = true; 16 17 installPhase = '' 18 install -vD ${./swiftpm2nix.sh} $out/bin/swiftpm2nix 19 wrapProgram $out/bin/$name \ 20 --prefix PATH : ${ 21 lib.makeBinPath [ 22 jq 23 nurl 24 ] 25 } \ 26 ''; 27 28 preferLocalBuild = true; 29 30 passthru = callPackage ./support.nix { }; 31 32 meta = { 33 description = "Generate a Nix expression to fetch swiftpm dependencies"; 34 mainProgram = "swiftpm2nix"; 35 teams = [ lib.teams.swift ]; 36 platforms = lib.platforms.all; 37 }; 38}