sane-clone: grab package data from ~/nixos instead of nixpkgs
this way i can clone my own packages
This commit is contained in:
@@ -8,9 +8,9 @@ basedir=/home/colin/ref/repos
|
|||||||
|
|
||||||
# fetchFromGitHub: provides src.{gitRepoUrl,owner,repo}
|
# fetchFromGitHub: provides src.{gitRepoUrl,owner,repo}
|
||||||
# fetchFromGitLab: provides src.gitRepoUrl only
|
# fetchFromGitLab: provides src.gitRepoUrl only
|
||||||
repourl="$(nix eval --raw nixpkgs#$srcattr.gitRepoUrl)"
|
repourl="$(nix eval --raw /home/colin/dev/nixos#$srcattr.gitRepoUrl)"
|
||||||
repoowner="$(nix eval --raw nixpkgs#$srcattr.owner)"
|
repoowner="$(nix eval --raw /home/colin/dev/nixos#$srcattr.owner)"
|
||||||
reponame="$(nix eval --raw nixpkgs#$srcattr.repo)"
|
reponame="$(nix eval --raw /home/colin/dev/nixos#$srcattr.repo)"
|
||||||
|
|
||||||
ownerdir="$basedir/$repoowner"
|
ownerdir="$basedir/$repoowner"
|
||||||
clonedir="$ownerdir/$reponame"
|
clonedir="$ownerdir/$reponame"
|
||||||
|
Reference in New Issue
Block a user