name paths for purity, preventing double-hash store paths
Some checks failed
/ check-pre-commit (pull_request) Failing after 9s
/ check-peertube (pull_request) Successful in 17s
/ check-panel (pull_request) Failing after 10s
/ check-deployment-basic (pull_request) Failing after 39s
/ check-deployment-cli (pull_request) Failing after 37s
Some checks failed
/ check-pre-commit (pull_request) Failing after 9s
/ check-peertube (pull_request) Successful in 17s
/ check-panel (pull_request) Failing after 10s
/ check-deployment-basic (pull_request) Failing after 39s
/ check-deployment-cli (pull_request) Failing after 37s
https://github.com/NixOS/nix/issues/10627
This commit is contained in:
parent
ee5c2b90b7
commit
196d4e1540
8 changed files with 41 additions and 13 deletions
|
@ -18,7 +18,10 @@ let
|
|||
};
|
||||
}).run
|
||||
{
|
||||
src = ./.;
|
||||
src = builtins.path {
|
||||
path = ./.;
|
||||
name = "root";
|
||||
};
|
||||
hooks =
|
||||
let
|
||||
## Add a directory here if pre-commit hooks shouldn't apply to it.
|
||||
|
|
|
@ -13,7 +13,10 @@ let
|
|||
"cowsay"
|
||||
];
|
||||
pathToRoot = /. + (builtins.unsafeDiscardStringContext self);
|
||||
pathFromRoot = ./.;
|
||||
pathFromRoot = builtins.path {
|
||||
path = ./.;
|
||||
name = "basic";
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
|
|
|
@ -15,7 +15,10 @@ let
|
|||
"pixelfed"
|
||||
];
|
||||
pathToRoot = /. + (builtins.unsafeDiscardStringContext self);
|
||||
pathFromRoot = ./.;
|
||||
pathFromRoot = builtins.path {
|
||||
path = ./.;
|
||||
name = "cli";
|
||||
};
|
||||
enableAcme = true;
|
||||
|
||||
in
|
||||
|
@ -57,7 +60,12 @@ in
|
|||
## function calls.
|
||||
makeTestDeployment =
|
||||
args:
|
||||
(import ../..)
|
||||
(import (
|
||||
builtins.path {
|
||||
path = ../..;
|
||||
name = "deployment";
|
||||
}
|
||||
))
|
||||
{
|
||||
inherit lib;
|
||||
inherit (inputs) nixops4 nixops4-nixos;
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (builtins) toString;
|
||||
in
|
||||
{
|
||||
REPO_DIR = toString ../.;
|
||||
REPO_DIR = builtins.path {
|
||||
path = ../.;
|
||||
name = "root";
|
||||
};
|
||||
# explicitly use nix, as e.g. lix does not have configurable-impure-env
|
||||
BIN_PATH = lib.makeBinPath [
|
||||
# explicitly use nix, as e.g. lix does not have configurable-impure-env
|
||||
|
|
|
@ -12,9 +12,14 @@ let
|
|||
with lib.fileset;
|
||||
toSource {
|
||||
root = ../src;
|
||||
fileset = intersection (gitTracked ../../.) ../src;
|
||||
fileset = intersection (gitTracked (
|
||||
builtins.path {
|
||||
path = ../../.;
|
||||
name = "root";
|
||||
}
|
||||
)) ../src;
|
||||
};
|
||||
pyproject = with lib; fromTOML pyproject-toml;
|
||||
pyproject = fromTOML pyproject-toml;
|
||||
# TODO: define this globally
|
||||
name = "panel";
|
||||
# TODO: we may want this in a file so it's easier to read statically
|
||||
|
|
|
@ -19,7 +19,10 @@ let
|
|||
|
||||
extraPython3Packages =
|
||||
let
|
||||
dir = toString ./.;
|
||||
dir = builtins.path {
|
||||
path = ./.;
|
||||
name = "python-packages";
|
||||
};
|
||||
in
|
||||
with builtins;
|
||||
listToAttrs (
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
(import ./. { }).shell
|
||||
(import (builtins.path {
|
||||
path = ./.;
|
||||
name = "panel";
|
||||
}) { }).shell
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
(import ./. { }).shell
|
||||
(import (builtins.path {
|
||||
path = ./.;
|
||||
name = "root";
|
||||
}) { }).shell
|
||||
|
|
Loading…
Add table
Reference in a new issue