Skip to content

Commit

Permalink
Make Nixpkgs detection more strict regarding GitHub org
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jul 10, 2024
1 parent 556e258 commit 34cab59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/flake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,14 @@ pub(super) fn nixpkgs_deps(
for (ref key, node) in flake_lock.root.clone() {
match &node {
Node::Repo(repo) => {
if repo.original.repo.starts_with("nixpkgs") {
if repo.original.owner.to_lowercase() == "nixos"
&& repo.original.repo.to_lowercase() == "nixpkgs"
{
deps.insert(key.to_string(), node);
}
}
Node::Tarball(tarball) => {
// If necessary, we can expand this to include other tarball sources
if tarball
.original
.url
Expand Down

0 comments on commit 34cab59

Please sign in to comment.