From 09c3dd36e6392f88c24b59dece475e593dc8a1e8 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Thu, 6 Jul 2023 11:50:07 +0200 Subject: [PATCH] chore: develop flake --- .direnv/flake-profile | 2 +- .direnv/flake-profile-28-link | 1 + flake.nix | 7 ++++++- release.json | 2 +- result | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) create mode 120000 .direnv/flake-profile-28-link diff --git a/.direnv/flake-profile b/.direnv/flake-profile index fe685a5..d9ab43a 120000 --- a/.direnv/flake-profile +++ b/.direnv/flake-profile @@ -1 +1 @@ -flake-profile-27-link \ No newline at end of file +flake-profile-28-link \ No newline at end of file diff --git a/.direnv/flake-profile-28-link b/.direnv/flake-profile-28-link new file mode 120000 index 0000000..0bfd71c --- /dev/null +++ b/.direnv/flake-profile-28-link @@ -0,0 +1 @@ +/nix/store/1f7b6a3dmnfcykz4y8ahapfav06jxjym-bob-0.3.16-env \ No newline at end of file diff --git a/flake.nix b/flake.nix index 297c2bf..bdfc953 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,11 @@ # Nixpkgs instantiated for supported system types. nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); + + rootPath = ./.; + releaseJson = builtins.fromJSON (builtins.readFile "${rootPath}/release.json"); + currentVersion = releaseJson.version; + in { @@ -29,7 +34,7 @@ { go-hello = pkgs.buildGoModule { pname = "bob"; - version = "0.5.3"; + version = currentVersion; # In 'nix develop', we don't need a copy of the source tree # in the Nix store. diff --git a/release.json b/release.json index 91b9f0a..17100ea 100644 --- a/release.json +++ b/release.json @@ -1 +1 @@ -{"version":"0.3.16"} +{"version":"0.6.0"} diff --git a/result b/result index d77674f..e3ba6e5 120000 --- a/result +++ b/result @@ -1 +1 @@ -/nix/store/q21v9ipxpaaix7ygr29vxgh6gv2v5d59-bob-0.5.3 \ No newline at end of file +/nix/store/njp5z2n7n9wg2jc30qaljb5lwxfk9s92-bob-0.6.0 \ No newline at end of file -- GitLab