depot/third_party/nixpkgs/pkgs/applications/misc/gnome-solanum/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

76 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, fetchpatch
, rustPlatform
, cargo
, desktop-file-utils
, appstream-glib
, blueprint-compiler
, meson
, ninja
, pkg-config
, rustc
, wrapGAppsHook
, python3
, git
, glib
, gtk4
, gst_all_1
, libadwaita
}:
stdenv.mkDerivation rec {
pname = "solanum";
version = "4.0.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "Solanum";
rev = version;
hash = "sha256-ohUwxwhPxZlKoP5Nq/daD9z5Nj37C7MnFzyvQKp7R8E=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-eDwMBxMmj246tplZfREJkViCDbKmuWSUZyM+tChNQDA=";
};
postPatch = ''
patchShebangs build-aux
'';
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook
python3
git
desktop-file-utils
appstream-glib
blueprint-compiler
rustPlatform.cargoSetupHook
cargo
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;
};
}