From 7b6052a47340d706ede8cc08b331f02de832e462 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Tue, 17 Dec 2024 21:16:55 +0900 Subject: 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 --- flake.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'flake.nix') 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}; -- cgit v1.3.1