aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-12-17 21:16:55 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-12-17 21:16:55 +0900
commit7b6052a47340d706ede8cc08b331f02de832e462 (patch)
tree3cd22d8ddd1423f1516ae1c1586a50e73479ffa4 /flake.nix
parent38653c6ab5c5632b81c7ff28b341f6fab86637c7 (diff)
nix: run Go tests in nixos
Nix build environment does not support ACLs in any filesystem. This allows acl tests to run. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix22
1 files changed, 21 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 624a060a..60611a0d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -74,7 +74,7 @@
touch $out
'';
- nixos-tests = callPackage ./test.nix { inherit self home-manager; };
+ nixos-tests = callPackage ./test.nix { inherit system self home-manager; };
}
);
@@ -95,6 +95,26 @@
buildInputs = with nixpkgsFor.${system}; self.packages.${system}.fortify.buildInputs;
};
+ fhs = nixpkgsFor.${system}.buildFHSEnv {
+ pname = "fortify-fhs";
+ inherit (self.packages.${system}.fortify) version;
+ targetPkgs =
+ pkgs: with pkgs; [
+ go
+ gcc
+ pkg-config
+ acl
+ wayland
+ wayland-scanner
+ wayland-protocols
+ xorg.libxcb
+ ];
+ extraOutputsToInstall = [ "dev" ];
+ profile = ''
+ export PKG_CONFIG_PATH="/usr/share/pkgconfig:$PKG_CONFIG_PATH"
+ '';
+ };
+
withPackage = nixpkgsFor.${system}.mkShell {
buildInputs =
with nixpkgsFor.${system};