diff --git a/default.nix b/default.nix index c7d2d21b..4c71ec49 100644 --- a/default.nix +++ b/default.nix @@ -18,10 +18,7 @@ let }; }).run { - src = builtins.path { - path = ./.; - name = "root"; - }; + src = ./.; hooks = let ## Add a directory here if pre-commit hooks shouldn't apply to it. diff --git a/deployment/check/basic/flake-part.nix b/deployment/check/basic/flake-part.nix index 76c4fec7..24d23c40 100644 --- a/deployment/check/basic/flake-part.nix +++ b/deployment/check/basic/flake-part.nix @@ -13,10 +13,7 @@ let "cowsay" ]; pathToRoot = /. + (builtins.unsafeDiscardStringContext self); - pathFromRoot = builtins.path { - path = ./.; - name = "basic"; - }; + pathFromRoot = ./.; in { diff --git a/deployment/check/cli/flake-part.nix b/deployment/check/cli/flake-part.nix index 2c2b5a4c..6bbc2eaf 100644 --- a/deployment/check/cli/flake-part.nix +++ b/deployment/check/cli/flake-part.nix @@ -15,10 +15,7 @@ let "pixelfed" ]; pathToRoot = /. + (builtins.unsafeDiscardStringContext self); - pathFromRoot = builtins.path { - path = ./.; - name = "cli"; - }; + pathFromRoot = ./.; enableAcme = true; in diff --git a/panel/nix/package.nix b/panel/nix/package.nix index 7b87a4f1..e1859bb2 100644 --- a/panel/nix/package.nix +++ b/panel/nix/package.nix @@ -12,12 +12,7 @@ let with lib.fileset; toSource { root = ../src; - fileset = intersection (gitTracked ( - builtins.path { - path = ../../.; - name = "root"; - } - )) ../src; + fileset = intersection (gitTracked ../../.) ../src; }; pyproject = fromTOML pyproject-toml; # TODO: define this globally