|
1 | 1 | { |
2 | 2 | description = "The purely functional package manager"; |
3 | 3 |
|
4 | | - # TODO switch to nixos-23.11-small |
5 | | - # https://nixpk.gs/pr-tracker.html?pr=291954 |
6 | | - inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-23.11"; |
| 4 | + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05-small"; |
7 | 5 | inputs.nixpkgs-regression.url = "github:NixOS/nixpkgs/215d4d0fd80ca5163643b03a33fde804a29cc1e2"; |
8 | 6 | inputs.flake-compat = { url = "github:edolstra/flake-compat"; flake = false; }; |
9 | 7 | inputs.libgit2 = { url = "github:libgit2/libgit2"; flake = false; }; |
|
12 | 10 |
|
13 | 11 | let |
14 | 12 | inherit (nixpkgs) lib; |
15 | | - inherit (lib) fileset; |
| 13 | + |
| 14 | + # Experimental fileset library: https://github.com/NixOS/nixpkgs/pull/222981 |
| 15 | + # Not an "idiomatic" flake input because: |
| 16 | + # - Propagation to dependent locks: https://github.com/NixOS/nix/issues/7730 |
| 17 | + # - Subflake would download redundant and huge parent flake |
| 18 | + # - No git tree hash support: https://github.com/NixOS/nix/issues/6044 |
| 19 | + inherit (import (builtins.fetchTarball { url = "https://github.com/NixOS/nix/archive/1bdcd7fc8a6a40b2e805bad759b36e64e911036b.tar.gz"; sha256 = "sha256:14ljlpdsp4x7h1fkhbmc4bd3vsqnx8zdql4h3037wh09ad6a0893"; })) |
| 20 | + fileset; |
16 | 21 |
|
17 | 22 | officialRelease = false; |
18 | 23 |
|
| 24 | + # Set to true to build the release notes for the next release. |
| 25 | + buildUnreleasedNotes = false; |
| 26 | + |
19 | 27 | version = lib.fileContents ./.version + versionSuffix; |
20 | 28 | versionSuffix = |
21 | 29 | if officialRelease |
|
396 | 404 | # Make bash completion work. |
397 | 405 | XDG_DATA_DIRS+=:$out/share |
398 | 406 | ''; |
399 | | - |
400 | 407 | nativeBuildInputs = attrs.nativeBuildInputs or [] |
401 | | - # TODO: Remove the darwin check once |
402 | | - # https://github.com/NixOS/nixpkgs/pull/291814 is available |
403 | | - ++ lib.optional (stdenv.cc.isClang && !stdenv.buildPlatform.isDarwin) pkgs.buildPackages.bear |
| 408 | + ++ lib.optional stdenv.cc.isClang pkgs.buildPackages.bear |
404 | 409 | ++ lib.optional (stdenv.cc.isClang && stdenv.hostPlatform == stdenv.buildPlatform) pkgs.buildPackages.clang-tools; |
405 | 410 | }); |
406 | 411 | in |
|
412 | 417 | (forAllStdenvs (stdenvName: makeShell pkgs pkgs.${stdenvName})); |
413 | 418 | in |
414 | 419 | (makeShells "native" nixpkgsFor.${system}.native) // |
415 | | - (lib.optionalAttrs (!nixpkgsFor.${system}.native.stdenv.isDarwin) |
416 | | - (makeShells "static" nixpkgsFor.${system}.static)) // |
417 | | - (lib.genAttrs shellCrossSystems (crossSystem: let pkgs = nixpkgsFor.${system}.cross.${crossSystem}; in makeShell pkgs pkgs.stdenv)) // |
| 420 | + (makeShells "static" nixpkgsFor.${system}.static) // |
| 421 | + (lib.genAttrs shellCrossSystems (crossSystem: let pkgs = nixpkgsFor.${system}.cross.${crossSystem}; in makeShell pkgs pkgs.stdenv)) // |
418 | 422 | { |
419 | 423 | default = self.devShells.${system}.native-stdenvPackages; |
420 | 424 | } |
|
0 commit comments