all repos — searchix @ 1a5c82e2d08accb6330c4164ab987b87157b10ed

Search engine for NixOS, nix-darwin, home-manager and NUR users

build: bake git hash into build for headers and --version

Alan Pearce
commit

1a5c82e2d08accb6330c4164ab987b87157b10ed

parent

f08094f23aa4dc7d63a7c98b4429d88005fe3a2d

1 file changed, 5 insertions(+), 2 deletions(-)

changed files
M flake.nixflake.nix
@@ -41,11 +41,11 @@ # The current default sdk for macOS fails to compile go projects, so we use a newer one for now.
# This has no effect on other platforms. callPackage = pkgs.darwin.apple_sdk_11_0.callPackage or pkgs.callPackage; in - { + rec { packages.default = callPackage ./nix/package.nix { inherit (gomod2nix.legacyPackages.${system}) buildGoApplication; - css = simple-css; inherit self; + css = simple-css; }; devShells.default = callPackage ./nix/dev-shell.nix { pre-commit-check = {
@@ -61,6 +61,9 @@ import ./nix/pre-commit-checks.nix {
inherit pkgs; } ); + buildVersion = pkgs.testers.testVersion { + package = packages.default; + }; }; }) );