Skip to content

Commit

Permalink
Merge pull request #315580 from lf-/jade/remove-old-nix-workaround
Browse files Browse the repository at this point in the history
tree-wide: remove --build-users-group '' workaround for 10 year old Nix bug
  • Loading branch information
lf- authored May 29, 2024
2 parents f7a63cf + e60c7e0 commit 83eba84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ def get_generations(profile: str | None = None) -> list[SystemIdentifier]:
f"{NIX}/bin/nix-env",
"--list-generations",
"-p",
"/nix/var/nix/profiles/%s" % ("system-profiles/" + profile if profile else "system"),
"--option", "build-users-group", ""],
"/nix/var/nix/profiles/%s" % ("system-profiles/" + profile if profile else "system")],
universal_newlines=True)
gen_lines = gen_list.split('\n')
gen_lines.pop()
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/nixpkgs-basic-release-checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pkgs.runCommand "nixpkgs-release-checks"
export NIX_STORE_DIR=$TMPDIR/store
export NIX_STATE_DIR=$TMPDIR/state
export NIX_PATH=nixpkgs=$TMPDIR/barf.nix
opts=(--option build-users-group "")
opts=()
nix-store --init
echo 'abort "Illegal use of <nixpkgs> in Nixpkgs."' > $TMPDIR/barf.nix
Expand Down

0 comments on commit 83eba84

Please sign in to comment.