Skip to content

Commit

Permalink
Revert "lib: init flakes.nix"
Browse files Browse the repository at this point in the history
This reverts commit PR NixOS#167947.

Flakes aren't standardised and the `lib` namespace shouldn't be
polluted with utilities that serve only experimental uses.
  • Loading branch information
adisbladis committed May 15, 2022
1 parent df37224 commit 161776e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 49 deletions.
4 changes: 0 additions & 4 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ let
callLibs = file: import file { lib = self; };
in {

# interacting with flakes
flakes = callLibs ./flakes.nix;

# often used, or depending on very little
trivial = callLibs ./trivial.nix;
fixedPoints = callLibs ./fixed-points.nix;
Expand Down Expand Up @@ -62,7 +59,6 @@ let
# linux kernel configuration
kernel = callLibs ./kernel.nix;

inherit (self.flakes) callLocklessFlake;
inherit (builtins) add addErrorContext attrNames concatLists
deepSeq elem elemAt filter genericClosure genList getAttr
hasAttr head isAttrs isBool isInt isList isString length
Expand Down
22 changes: 0 additions & 22 deletions lib/flakes.nix

This file was deleted.

8 changes: 0 additions & 8 deletions lib/tests/flakes/subflakeTest/flake.nix

This file was deleted.

5 changes: 0 additions & 5 deletions lib/tests/flakes/subflakeTest/subflake/flake.nix

This file was deleted.

10 changes: 0 additions & 10 deletions lib/tests/misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ in

runTests {

# FLAKES

testCallLocklessFlake = {
expr = callLocklessFlake {
path = ./flakes/subflakeTest;
inputs = { subflake = ./flakes/subflakeTest/subflake; inherit callLocklessFlake; };
};
expected = { x = 1; outPath = ./flakes/subflakeTest; };
};

# TRIVIAL

testId = {
Expand Down

0 comments on commit 161776e

Please sign in to comment.