nix: clean up directory structure
Tests for fpkg is going to be in ./cmd/fpkg, so this central tests directory is no longer necessary. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
e1a3549ea0
commit
b6af8caffe
12
flake.nix
12
flake.nix
@ -57,6 +57,12 @@
|
|||||||
;
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
fortify = callPackage ./test { inherit system self; };
|
||||||
|
race = callPackage ./test {
|
||||||
|
inherit system self;
|
||||||
|
withRace = true;
|
||||||
|
};
|
||||||
|
|
||||||
formatting = runCommandLocal "check-formatting" { nativeBuildInputs = [ nixfmt-rfc-style ]; } ''
|
formatting = runCommandLocal "check-formatting" { nativeBuildInputs = [ nixfmt-rfc-style ]; } ''
|
||||||
cd ${./.}
|
cd ${./.}
|
||||||
|
|
||||||
@ -85,12 +91,6 @@
|
|||||||
|
|
||||||
touch $out
|
touch $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
fortify = callPackage ./tests/fortify { inherit system self; };
|
|
||||||
race = callPackage ./tests/fortify {
|
|
||||||
inherit system self;
|
|
||||||
withRace = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ nixosTest {
|
|||||||
# Run with Go race detector:
|
# Run with Go race detector:
|
||||||
environment.fortify = lib.mkIf withRace rec {
|
environment.fortify = lib.mkIf withRace rec {
|
||||||
# race detector does not support static linking
|
# race detector does not support static linking
|
||||||
package = (pkgs.callPackage ../../package.nix { }).overrideAttrs (previousAttrs: {
|
package = (pkgs.callPackage ../package.nix { }).overrideAttrs (previousAttrs: {
|
||||||
GOFLAGS = previousAttrs.GOFLAGS ++ [ "-race" ];
|
GOFLAGS = previousAttrs.GOFLAGS ++ [ "-race" ];
|
||||||
});
|
});
|
||||||
fsuPackage = options.environment.fortify.fsuPackage.default.override { fortify = package; };
|
fsuPackage = options.environment.fortify.fsuPackage.default.override { fortify = package; };
|
Loading…
Reference in New Issue
Block a user