nixpkgs/pkgs/applications/misc/gnome-solanum/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.6 KiB
Nix
Raw Normal View History

2022-03-05 14:50:33 +00:00
{ lib
, stdenv
, fetchFromGitLab
, fetchpatch
2022-03-05 14:50:33 +00:00
, rustPlatform
, cargo
2022-03-05 14:50:33 +00:00
, desktop-file-utils
, meson
, ninja
, pkg-config
, rustc
2022-03-05 14:50:33 +00:00
, wrapGAppsHook
, python3
, git
, glib
, gtk4
, gst_all_1
, libadwaita
}:
stdenv.mkDerivation rec {
pname = "solanum";
version = "3.0.1";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "Solanum";
rev = "v${version}";
sha256 = "0cga6cz6jfbipzp008rjznkz7844licdc34lk133fcyqil0cg0ap";
};
patches = [
# Fix build with meson 0.61, can be removed on next update
# https://gitlab.gnome.org/World/Solanum/-/merge_requests/49
(fetchpatch {
url = "https://gitlab.gnome.org/World/Solanum/-/commit/e5c5d88f95b0fe4145c9ed346b8ca98a613d7cfe.patch";
sha256 = "j84P9KzMr0o38u4OD4ZPst+yqw1LCRoa1awT3nelFDI=";
})
];
2022-03-05 14:50:33 +00:00
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
sha256 = "10kzv98b2fiql9f6n2fv6lrgq4fdzxq0h4nzcq9jrw3fsggzl0wb";
};
postPatch = ''
patchShebangs build-aux
'';
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook
python3
git
desktop-file-utils
rustPlatform.cargoSetupHook
cargo
rustc
];
2022-03-05 14:50:33 +00:00
buildInputs = [
glib
gtk4
libadwaita
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-bad
];
meta = with lib; {
homepage = "https://gitlab.gnome.org/World/Solanum";
description = "A pomodoro timer for the GNOME desktop";
maintainers = with maintainers; [ linsui ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}