diff options
author | Daniel Poelzleithner <git@poelzi.org> | 2019-06-05 19:13:57 +0200 |
---|---|---|
committer | Daniel Poelzleithner <git@poelzi.org> | 2019-06-05 19:13:57 +0200 |
commit | ee32efcfece2d319ec2304f7a277941292add7d8 (patch) | |
tree | 759dda09e3a4f8fda03b7c552c632f6474263588 /build/util.py | |
parent | 0b1137a1ba914e6acb7217e800585b4230bd45f1 (diff) |
Move version into own file and use version file in default.nix
Due the nature of nix, using "git describe" will always waste a
copy of the source folder and is quite slow.
Since nix string functions are very limited and extracting the
version is difficult, the best compromise was to move the version
into a small file as a single source of truth.
Diffstat (limited to 'build/util.py')
-rw-r--r-- | build/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/util.py b/build/util.py index d759b43c0b..6c8c7a7d12 100644 --- a/build/util.py +++ b/build/util.py @@ -113,7 +113,7 @@ def get_build_dir(platformString, bitwidth): def get_mixxx_version(): """Get Mixxx version number from defs_version.h""" # have to handle out-of-tree building, that's why the '#' :( - defs = Script.File('#src/defs_version.h') + defs = Script.File('#src/_version.h') version = "" for line in open(str(defs)).readlines(): |