Skip to content

Commit d6d7d2c

Browse files
committed
Revert "Merge pull request NixOS#9546 from NixOS/nixos-23.11"
This reverts commit 587c7dc, reversing changes made to 864fc85.
1 parent bcd6b33 commit d6d7d2c

7 files changed

Lines changed: 23 additions & 20 deletions

File tree

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ ifeq ($(OPTIMIZE), 1)
6969
GLOBAL_LDFLAGS += $(CXXLTO)
7070
else
7171
GLOBAL_CXXFLAGS += -O0 -U_FORTIFY_SOURCE
72-
unexport NIX_HARDENING_ENABLE
7372
endif
7473

7574
include mk/platform.mk

flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
description = "The purely functional package manager";
33

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";
75
inputs.nixpkgs-regression.url = "github:NixOS/nixpkgs/215d4d0fd80ca5163643b03a33fde804a29cc1e2";
86
inputs.flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
97
inputs.libgit2 = { url = "github:libgit2/libgit2"; flake = false; };
@@ -12,10 +10,20 @@
1210

1311
let
1412
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;
1621

1722
officialRelease = false;
1823

24+
# Set to true to build the release notes for the next release.
25+
buildUnreleasedNotes = false;
26+
1927
version = lib.fileContents ./.version + versionSuffix;
2028
versionSuffix =
2129
if officialRelease
@@ -396,11 +404,8 @@
396404
# Make bash completion work.
397405
XDG_DATA_DIRS+=:$out/share
398406
'';
399-
400407
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
404409
++ lib.optional (stdenv.cc.isClang && stdenv.hostPlatform == stdenv.buildPlatform) pkgs.buildPackages.clang-tools;
405410
});
406411
in
@@ -412,9 +417,8 @@
412417
(forAllStdenvs (stdenvName: makeShell pkgs pkgs.${stdenvName}));
413418
in
414419
(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)) //
418422
{
419423
default = self.devShells.${system}.native-stdenvPackages;
420424
}

package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ in {
154154
in
155155
fileset.toSource {
156156
root = ./.;
157-
fileset = fileset.intersection baseFiles (fileset.unions ([
157+
fileset = fileset.intersect baseFiles (fileset.unions ([
158158
# For configure
159159
./.version
160160
./configure.ac

src/libstore/local-store.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ StorePath LocalStore::addToStoreFromDump(
12081208
Path tempDir;
12091209
AutoCloseFD tempDirFd;
12101210

1211-
bool methodsMatch = ContentAddressMethod(FileIngestionMethod(dumpMethod)) == hashMethod;
1211+
bool methodsMatch = (FileIngestionMethod) dumpMethod == hashMethod;
12121212

12131213
/* If the methods don't match, our streaming hash of the dump is the
12141214
wrong sort, and we need to rehash. */

tests/functional/git-hashing/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ clearStore
44
clearCache
55

66
# Need backend to support git-hashing too
7-
requireDaemonNewerThan "2.19"
7+
requireDaemonNewerThan "2.18.0pre20230908"
88

99
enableFeatures "git-hashing"
1010

tests/functional/impure-env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source common.sh
22

33
# Needs the config option 'impure-env' to work
4-
requireDaemonNewerThan "2.19.0"
4+
requireDaemonNewerThan "2.18.0pre20230816"
55

66
enableFeatures "configurable-impure-env"
77
restartDaemon

0 commit comments

Comments
 (0)