sane-clone: note that fetchFromGitLab doesnt pass attrs through in quite the same way

This commit is contained in:
Colin 2023-11-27 09:48:59 +00:00
parent 78bf5caf00
commit a94c460a95

View File

@ -6,6 +6,8 @@
srcattr="$1.src"
basedir=/home/colin/ref/repos
# fetchFromGitHub: provides src.{gitRepoUrl,owner,repo}
# fetchFromGitLab: provides src.gitRepoUrl only
repourl="$(nix eval nixpkgs#$srcattr.gitRepoUrl | jq --raw-output)"
repoowner="$(nix eval nixpkgs#$srcattr.owner | jq --raw-output)"
reponame="$(nix eval nixpkgs#$srcattr.repo | jq --raw-output)"