Merge pull request #299291 from Stunkymonkey/newslfash-3.2.0

newsflash: 3.1.6 -> 3.2.0
This commit is contained in:
Felix Bühler 2024-05-04 20:20:43 +02:00 committed by GitHub
commit 31c1dfe843
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 650 additions and 250 deletions

File diff suppressed because it is too large Load diff

View file

@ -2,6 +2,7 @@
, stdenv
, rustPlatform
, fetchFromGitLab
, substituteAll
, cargo
, meson
, ninja
@ -25,21 +26,20 @@
stdenv.mkDerivation (finalAttrs: {
pname = "newsflash";
version = "3.1.6";
version = "3.2.0";
src = fetchFromGitLab {
owner = "news-flash";
repo = "news_flash_gtk";
rev = "refs/tags/v.${finalAttrs.version}";
hash = "sha256-zEf61aKtiuTCmhzkfVkTLtIRCb4DVXVtI+9Az9dU9HE=";
hash = "sha256-buXFQ/QAFOcdcywlacySuq8arqPEJIti1nK+yl3yWck=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"news-flash-2.3.0-alpha.0" = "sha256-Gr7EyAbIFABZx9GR/WvshF0vfJaul7wz4pro2EbwSM8=";
"newsblur_api-0.2.0" = "sha256-eysCB19znQF8mRwQ64nSp6KuvJ1Trot4g4WCdQDedo8=";
"article_scraper-2.0.0" = "sha256-URiteEJ1kXoGfRopGoRI/4iPbzd+F9bQaMJKpkrh/sE=";
"news-flash-2.3.0-alpha.0" = "sha256-WITvnqeEDp793AlZ3gj8Tg0dfccuOj0Us5H5FaEtkxk=";
"newsblur_api-0.3.0" = "sha256-m2178zdJzeskl3BQpZr6tlxTAADehxz8uYcZzi15nhQ=";
};
};
@ -50,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',
)