You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
324 B

2 years ago
  1. # Behaves like `<nixpkgs>` but pinned. Like `<nixpkgs>`, requires attrset for opt overlays.
  2. attrs:
  3. let
  4. hostpkgs = import <nixpkgs> {};
  5. pinnedNixpkgs = hostpkgs.lib.importJSON ./nixpkgs.json;
  6. nixpkgs = builtins.fetchTarball {
  7. url = pinnedNixpkgs.url;
  8. sha256 = pinnedNixpkgs.sha256;
  9. };
  10. in import nixpkgs attrs