aboutsummaryrefslogtreecommitdiff
path: root/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'package.nix')
-rw-r--r--package.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/package.nix b/package.nix
index d38563eec..3d41ea703 100644
--- a/package.nix
+++ b/package.nix
@@ -88,7 +88,8 @@ let
inherit (lib) fileset;
inherit (stdenv) hostPlatform buildPlatform;
- version = lib.fileContents ./.version + versionSuffix;
+ versionJson = builtins.fromJSON (builtins.readFile ./version.json);
+ version = versionJson.version + versionSuffix;
aws-sdk-cpp-nix = aws-sdk-cpp.override {
apis = [
@@ -138,7 +139,7 @@ let
# that would interfere with repo semantics.
baseFiles = fileset.fileFilter (f: f.name != ".gitignore") ./.;
- configureFiles = fileset.unions [ ./.version ];
+ configureFiles = fileset.unions [ ./version.json ];
topLevelBuildFiles = fileset.unions ([
./meson.build