29 stdenv.mkDerivation (finalAttrs: {
33 src = fetchFromGitLab {
35 repo = "news_flash_gtk";
36 rev = "refs/tags/v.${finalAttrs.version}";
37 hash = "sha256-s8h/OIJJzMmsCsaQJ0SOjCAVXfYQbjOupdDtLOqM9d0=";
40 cargoDeps = rustPlatform.importCargoLock {
41 lockFile = ./Cargo.lock;
43 "clapper-0.1.0" = "sha256-xQ7l6luO5E4PMjtN9elg0bkJa7IhWzA7KuYDJ+m/VY0=";
44 "news-flash-2.3.0-alpha.0" = "sha256-ZgX6tQmPDMSpLcYD04u2ReQXdzeGzQTwGaUy/y4z4do=";
45 "newsblur_api-0.3.0" = "sha256-m2178zdJzeskl3BQpZr6tlxTAADehxz8uYcZzi15nhQ=";
50 # Post install tries to generate an icon cache & update the
51 # desktop database. The gtk setup hook drop-icon-theme-cache.sh
52 # would strip out the icon cache and the desktop database wouldn't
53 # be included in $out. They will generated by xdg.mime.enable &
54 # gtk.iconCache.enable instead.
55 ./no-post-install.patch
57 # Replace placeholder "0.0.0" project version with nixpkgs version
59 src = ./hardcode-version.patch;
60 inherit (finalAttrs) version;
65 patchShebangs build-aux/cargo.sh
76 # Provides setup hook to fix "Unrecognized image file format"
79 # Provides glib-compile-resources to compile gresources
81 rustPlatform.cargoSetupHook
97 # TLS support for loading external content in webkitgtk WebView
100 # SVG support for gdk-pixbuf
103 ++ (with gst_all_1; [
104 # Audio & video support for webkitgtk WebView
111 passthru.updateScript = gitUpdater { rev-prefix = "v."; };
114 description = "A modern feed reader designed for the GNOME desktop";
115 homepage = "https://gitlab.com/news-flash/news_flash_gtk";
116 license = licenses.gpl3Plus;
117 maintainers = with maintainers; [
121 platforms = platforms.unix;
122 mainProgram = "io.gitlab.news_flash.NewsFlash";