ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / gn / gnome-sound-recorder / package.nix
blob059e30b7aacc9e2352f7b59dd0d81a08de11b47a
2   stdenv,
3   lib,
4   fetchurl,
5   pkg-config,
6   gettext,
7   gobject-introspection,
8   wrapGAppsHook4,
9   gjs,
10   glib,
11   gtk4,
12   gdk-pixbuf,
13   gst_all_1,
14   gnome,
15   meson,
16   ninja,
17   python3,
18   desktop-file-utils,
19   libadwaita,
22 stdenv.mkDerivation rec {
23   pname = "gnome-sound-recorder";
24   version = "43.beta";
26   src = fetchurl {
27     url = "mirror://gnome/sources/gnome-sound-recorder/${lib.versions.major version}/gnome-sound-recorder-${version}.tar.xz";
28     hash = "sha256-bbbbmjsbUv0KtU+aW/Tymctx5SoTrF/fw+dOtGmFpOY=";
29   };
31   nativeBuildInputs = [
32     pkg-config
33     gettext
34     meson
35     ninja
36     gobject-introspection
37     wrapGAppsHook4
38     python3
39     desktop-file-utils
40   ];
42   buildInputs =
43     [
44       gjs
45       glib
46       gtk4
47       gdk-pixbuf
48       libadwaita
49     ]
50     ++ (with gst_all_1; [
51       gstreamer
52       gst-plugins-base
53       gst-plugins-good
54       gst-plugins-bad # for gstreamer-player-1.0
55     ]);
57   postPatch = ''
58     chmod +x build-aux/meson_post_install.py
59     substituteInPlace build-aux/meson_post_install.py \
60       --replace-fail 'gtk-update-icon-cache' 'gtk4-update-icon-cache'
61     patchShebangs build-aux/meson_post_install.py
62   '';
64   passthru = {
65     updateScript = gnome.updateScript { packageName = "gnome-sound-recorder"; };
66   };
68   meta = with lib; {
69     description = "Simple and modern sound recorder";
70     mainProgram = "gnome-sound-recorder";
71     homepage = "https://gitlab.gnome.org/World/vocalis";
72     changelog = "https://gitlab.gnome.org/World/vocalis/-/blob/${version}/NEWS?ref_type=tags";
73     license = licenses.gpl2Plus;
74     maintainers = teams.gnome.members;
75     platforms = platforms.linux;
76   };