diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-06-06 11:35:03 -0700 |
---|---|---|
committer | Jade Lovelace <lix@jade.fyi> | 2024-06-06 15:08:12 -0700 |
commit | 9c77c62e731e3fb9b1a87414c5b2d7a52932a507 (patch) | |
tree | 3e2ec9a7ff5156be6828006a4890b641b4729bd9 /package.nix | |
parent | 24057dcb6a5d33806de66de1e42137eca398350e (diff) |
Move version to a JSON file so we can have release names
Change-Id: I5ff3396a302565ee5ee6c2db97e048e403779076
Diffstat (limited to 'package.nix')
-rw-r--r-- | package.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package.nix b/package.nix index a39ff4b2e..005bdc6b1 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 |