Commit c65decab authored by Kira Bruneau's avatar Kira Bruneau
Browse files

newsflash: hardcode version

parent 3a019783
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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 = ''
+12 −0
Original line number Diff line number Diff line
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',
 )