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.

77 lines
1.3 KiB
Nix
Raw Normal View History

2022-03-05 14:50:33 +00:00
{ lib
, stdenv
, fetchFromGitLab
, rustPlatform
, cargo
2022-03-05 14:50:33 +00:00
, desktop-file-utils
2023-06-09 05:54:20 +00:00
, appstream-glib
, blueprint-compiler
2022-03-05 14:50:33 +00:00
, meson
, ninja
, pkg-config
, rustc
, wrapGAppsHook4
2022-03-05 14:50:33 +00:00
, python3
, git
, glib
, gtk4
, gst_all_1
, libadwaita
}:
stdenv.mkDerivation rec {
pname = "solanum";
2023-11-29 12:38:48 +00:00
version = "5.0.0";
2022-03-05 14:50:33 +00:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "Solanum";
2023-06-09 05:54:20 +00:00
rev = version;
2023-11-29 12:38:48 +00:00
hash = "sha256-Xf/b/9o6zHF1hjHSyAXb90ySoBj+DMMe31e6RfF8C4Y=";
2022-03-05 14:50:33 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2023-11-29 12:38:48 +00:00
hash = "sha256-POvKpwzi+bkEkfSDhi/vjs/ey+A2vNN5ta4Q7Ma/RBQ=";
2022-03-05 14:50:33 +00:00
};
postPatch = ''
patchShebangs build-aux
'';
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
2022-03-05 14:50:33 +00:00
python3
git
desktop-file-utils
2023-06-09 05:54:20 +00:00
appstream-glib
blueprint-compiler
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 = "Pomodoro timer for the GNOME desktop";
2022-03-05 14:50:33 +00:00
maintainers = with maintainers; [ linsui ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
2023-11-29 12:38:48 +00:00
mainProgram = "solanum";
2022-03-05 14:50:33 +00:00
};
}