Skip to content
Snippets Groups Projects
Verified Commit 42909cd5 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: manage flake

parent 49a9620f
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,8 @@
packages = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
#buildDate = builtins.date "%Y%m%d" (builtins.fromJSON lastModifiedDate);
#version = builtins.readFile "${versionTool}/version print --git";
version = "${versionTool}/bin/version print --git"; # assuming this gives you version
build = "${versionTool}/bin/version build"; # assuming this gives you build
in
{
docman = pkgs.buildGoModule {
......@@ -66,8 +66,10 @@
# "-X release.version=$version -X release.build=$(due --iso-8601 | tr -d "-" )"
ldflags = [
"-X release.version=${versionTool} print --git"
"-X release.build=${versionTool} build"
"-s"
"-w"
"-X release.version=${version}"
"-X release.build=${build}"
];
buildInputs = [ versionTool.defaultPackage.${system} ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment