newsflash: hardcode version
This commit is contained in:
parent
3a0197832c
commit
c65decab3b
2 changed files with 19 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
|
@ -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',
|
||||
)
|
||||
|
Loading…
Reference in a new issue