1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 17:01:10 +03:00
nixpkgs/pkgs/development/compilers/swift/swiftpm/generated/default.nix

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

63 lines
2.5 KiB
Nix
Raw Normal View History

2022-07-25 21:57:00 +02:00
# This file was generated by swiftpm2nix.
{ lib, fetchgit }: rec {
sources = {
"swift-argument-parser" = fetchgit {
url = "https://github.com/apple/swift-argument-parser.git";
rev = "e394bf350e38cb100b6bc4172834770ede1b7232";
sha256 = "1jph9w7lk9nr20fsv2c8p4hisx3dda817fh7pybd0r0j1jwa9nmw";
};
"swift-collections" = fetchgit {
url = "https://github.com/apple/swift-collections.git";
rev = "f504716c27d2e5d4144fa4794b12129301d17729";
sha256 = "0l0pv16zil3n7fac7mdf5qxklxr5rwiig5bixgca1ybq7arlnv7i";
};
"swift-crypto" = fetchgit {
url = "https://github.com/apple/swift-crypto.git";
rev = "ddb07e896a2a8af79512543b1c7eb9797f8898a5";
sha256 = "020b8q4ss2k7a65r5dgh59z40i6sn7ij1allxkh8c8a9d0jzn313";
};
"swift-driver" = fetchgit {
url = "https://github.com/apple/swift-driver.git";
rev = "719426df790661020de657bf38beb2a8b1de5ad3";
sha256 = "0cfz9g5mds8isn1simxal4vn3z7yh2kh6wg5267w3m0ifrcxfkmj";
};
"swift-llbuild" = fetchgit {
url = "https://github.com/apple/swift-llbuild.git";
rev = "564424db5fdb62dcb5d863bdf7212500ef03a87b";
sha256 = "07zbp2dyfqd1bnyg7snpr9brn40jf22ivly5v10mql3hrg76a18h";
};
"swift-system" = fetchgit {
url = "https://github.com/apple/swift-system.git";
rev = "836bc4557b74fe6d2660218d56e3ce96aff76574";
sha256 = "0402hkx2q2dv27gccnn8ma79ngvwiwzkhcv4zlcdldmy6cgi0px7";
};
"swift-tools-support-core" = fetchgit {
url = "https://github.com/apple/swift-tools-support-core.git";
rev = "184eba382f6abbb362ffc02942d790ff35019ad4";
sha256 = "005akmisnkcg6zjwm545183c12xm8z504yxxqmnqf0rakfcab1mi";
};
"Yams" = fetchgit {
url = "https://github.com/jpsim/Yams.git";
rev = "9ff1cc9327586db4e0c8f46f064b6a82ec1566fa";
sha256 = "1893y13sis2aimi1a5kgkczbf06z4yig054xb565yg2xm13srb45";
};
};
configure = ''
mkdir -p .build/checkouts
ln -sf ${./Package.resolved} ./Package.resolved
install -m 0600 ${./workspace-state.json} ./.build/workspace-state.json
''
+ lib.concatStrings (lib.mapAttrsToList (name: src: ''
ln -s '${src}' '.build/checkouts/${name}'
'') sources)
+ ''
# Helper that makes a swiftpm dependency mutable by copying the source.
swiftpmMakeMutable() {
local orig="$(readlink .build/checkouts/$1)"
rm .build/checkouts/$1
cp -r "$orig" .build/checkouts/$1
chmod -R u+w .build/checkouts/$1
}
'';
}