build: bake git hash into build for headers and --version
1 file changed, 5 insertions(+), 2 deletions(-)
changed files
M flake.nix → flake.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; + }; }; }) );