mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
handle melpa new fetchers in libgenerated.nix
This commit is contained in:
parent
b43f6f58c9
commit
0d012fb1b7
@ -45,6 +45,18 @@ let
|
||||
inherit sha256 url;
|
||||
}
|
||||
) {};
|
||||
sourcehut = self.callPackage ({ fetchzip }:
|
||||
fetchzip {
|
||||
url = "https://git.sr.ht/~${repo}/archive/${commit}.tar.gz";
|
||||
inherit sha256;
|
||||
}
|
||||
) {};
|
||||
codeberg = self.callPackage ({ fetchzip }:
|
||||
fetchzip {
|
||||
url = "https://codeberg.org/${repo}/archive/${commit}.tar.gz";
|
||||
inherit sha256;
|
||||
}
|
||||
) {};
|
||||
};
|
||||
|
||||
in {
|
||||
|
@ -214,7 +214,9 @@ return Promise to resolve in that process."
|
||||
`((fetcher . ,fetcher))
|
||||
(if (or (equal "github" fetcher)
|
||||
(equal "bitbucket" fetcher)
|
||||
(equal "gitlab" fetcher))
|
||||
(equal "gitlab" fetcher)
|
||||
(equal "sourcehut" fetcher)
|
||||
(equal "codeberg" fetcher))
|
||||
`((repo . ,repo))
|
||||
`((url . ,url)))
|
||||
(when unstable-aprops `((unstable . ,(source-info entry unstable-archive unstable-sha))))
|
||||
|
Loading…
Reference in New Issue
Block a user