Genode Packages collection https://git.sr.ht/~ehmry/genodepkgs/
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.

dhallPinnedNixpkgs.nix 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. let
  2. fetchNixpkgs =
  3. { rev # The Git revision of nixpkgs to fetch
  4. , owner ? "NixOS" # Owner of the Github repository
  5. , sha256 # The SHA256 hash of the unpacked archive
  6. , system ? builtins.currentSystem # This is overridable if necessary
  7. }:
  8. if (0 <= builtins.compareVersions builtins.nixVersion "1.12")
  9. # In Nix 1.12, we can just give a `sha256` to `builtins.fetchTarball`.
  10. then
  11. (builtins.fetchTarball {
  12. url = "https://github.com/${owner}/nixpkgs/archive/${rev}.tar.gz";
  13. inherit sha256;
  14. })
  15. # This hack should at least work for Nix 1.11
  16. else
  17. ((rec {
  18. tarball = import <nix/fetchurl.nix> {
  19. url = "https://github.com/${owner}/nixpkgs/archive/${rev}.tar.gz";
  20. sha256 = null;
  21. };
  22. builtin-paths = import <nix/config.nix>;
  23. script = builtins.toFile "nixpkgs-unpacker" ''
  24. "$coreutils/mkdir" "$out"
  25. cd "$out"
  26. "$gzip" --decompress < "$tarball" | "$tar" -x --strip-components=1
  27. '';
  28. nixpkgs = builtins.derivation ({
  29. name = "nixpkgs-${builtins.substring 0 6 rev}";
  30. builder = builtins.storePath builtin-paths.shell;
  31. args = [ script ];
  32. inherit tarball system;
  33. tar = builtins.storePath builtin-paths.tar;
  34. gzip = builtins.storePath builtin-paths.gzip;
  35. coreutils = builtins.storePath builtin-paths.coreutils;
  36. } // (if null == sha256 then
  37. { }
  38. else {
  39. outputHashMode = "recursive";
  40. outputHashAlgo = "sha256";
  41. outputHash = sha256;
  42. }));
  43. }).nixpkgs);
  44. in {
  45. nixpkgs = fetchNixpkgs {
  46. rev = "1d4de0d552ae9aa66a5b8dee5fb0650a4372d148";
  47. sha256 = "0xpqc1fhkvvv5dv1zmas2j1q27mi7j7dgyjcdh82mlgl1q63i660";
  48. };
  49. nixpkgsStaticLinux = fetchNixpkgs {
  50. owner = "nh2";
  51. rev = "925aac04f4ca58aceb83beef18cb7dae0715421b";
  52. sha256 = "1zr8lscjl2a5cz61f0ibyx55a94v8yyp6sjzjl2gkqjrjbg99abx";
  53. };
  54. }