diff options
author | linsui <linsui555@gmail.com> | 2022-03-05 22:50:33 +0800 |
---|---|---|
committer | linsui <linsui555@gmail.com> | 2022-03-05 22:50:33 +0800 |
commit | 17b4223d210a71c65d3bbfc576ec8eaf9dba2250 (patch) | |
tree | 5c8e94fad04557fbe19b31234d4762f63d9b789b /pkgs/applications/misc/gnome-solanum | |
parent | 5556fc8f8f0ef423a670724b71d106a0aef19231 (diff) |
gnome-solanum: init at 3.0.1
Diffstat (limited to 'pkgs/applications/misc/gnome-solanum')
-rw-r--r-- | pkgs/applications/misc/gnome-solanum/default.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/applications/misc/gnome-solanum/default.nix b/pkgs/applications/misc/gnome-solanum/default.nix new file mode 100644 index 0000000000000..8ad1267afa932 --- /dev/null +++ b/pkgs/applications/misc/gnome-solanum/default.nix @@ -0,0 +1,70 @@ +{ lib +, stdenv +, fetchFromGitLab +, rustPlatform +, desktop-file-utils +, meson +, ninja +, pkg-config +, 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"; + }; + + 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 + ] ++ (with rustPlatform; [ + cargoSetupHook + rust.cargo + rust.rustc + ]); + + 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; + }; +} |