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

chore: add flake support

parent 22c85f95
No related branches found
No related tags found
No related merge requests found
flake-profile-8-link flake-profile-11-link
\ No newline at end of file \ No newline at end of file
/nix/store/ypa023g5zjkd7k3dqzfj9lgz0b8v3k1m-bob-env
\ No newline at end of file
/nix/store/4ks8fnmw8wiagdl1q988ydshybd930gp-bob-env
\ No newline at end of file
/nix/store/fmzyd8bwyl43fdmcg80xslg7b46f47pj-bob-env
\ No newline at end of file
...@@ -19,23 +19,25 @@ ...@@ -19,23 +19,25 @@
in in
{ {
overlay = final: prev: { overlay = final: prev: {
bob = final.buildGoModule { bob = final.buildGoModule rec {
name = "bob"; name = "bob";
src = ././application/source; src = ././application/source;
vendorSha256 = "sha256-qiObIbA75kfkGzZoTtZbkm4zQqXokL+hiWrJdmL8oxU="; # Use "nix to-sri --type sha256" on the actual hash vendorSha256 = "sha256-qiObIbA75kfkGzZoTtZbkm4zQqXokL+hiWrJdmL8oxU="; # Use "nix to-sri --type sha256" on the actual hash
doCheck = false; doCheck = true;
nativeBuildInputs = [ final.jq ]; nativeBuildInputs = [ final.jq ];
#buildInputs = [ nixpkgs.go ];
# preBuild = '' ldflags=''-X main.version=${currentVersion} -X main.build=${self.lastModifiedDate}'';
# jq -r '.version' ${rootPath}/release.json > $TMPDIR/version #buildFlags = "-ldflags=-X main.version=${currentVersion} -X main.build=${self.lastModifiedDate}";
# buildPhase = ''
# buildFlagsArray=(
# "-ldflags=-X main.version=${currentVersion} -X main.build=${self.lastModifiedDate}"
# )
# buildPhase
# ''; # '';
buildPhase = ''
buildFlagsArray=(
"-ldflags=-X main.version=${currentVersion} -X main.build=${self.lastModifiedDate}"
)
buildPhase
'';
}; };
}; };
......
/nix/store/nzn16jnc6wgd2p9bwrczn8wl4vysg7y8-bob /nix/store/c3i50psx5zic5sxnqy46dap3pzfl8fg2-bob
\ No newline at end of file \ No newline at end of file
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