newsflash: hardcode version

This commit is contained in:
Kira Bruneau 2024-05-03 13:35:37 -04:00
parent 3a0197832c
commit c65decab3b
2 changed files with 19 additions and 0 deletions

View file

@ -2,6 +2,7 @@
, stdenv
, rustPlatform
, fetchFromGitLab
, substituteAll
, cargo
, meson
, ninja
@ -49,6 +50,12 @@ stdenv.mkDerivation (finalAttrs: {
# be included in $out. They will generated by xdg.mime.enable &
# gtk.iconCache.enable instead.
./no-post-install.patch
# Replace placeholder "0.0.0" project version with nixpkgs version
(substituteAll {
src = ./hardcode-version.patch;
inherit (finalAttrs) version;
})
];
postPatch = ''

View file

@ -0,0 +1,12 @@
diff --git a/meson.build b/meson.build
index 55a5048a..1c648189 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project(
'newsflash', 'rust',
- version: '0.0.0',
+ version: '@version@',
license: 'GPLv3',
)