depot/third_party/nixpkgs/pkgs/by-name/fr/fragments/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

77 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, appstream-glib
, cargo
, dbus
, desktop-file-utils
, git
, glib
, gtk4
, libadwaita
, meson
, ninja
, openssl
, pkg-config
, rustPlatform
, rustc
, sqlite
, transmission_4
, wrapGAppsHook4
}:
stdenv.mkDerivation rec {
pname = "fragments";
version = "3.0.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "Fragments";
rev = version;
hash = "sha256-HtulyB1XYBsA595ghJN0EmyJT7DjGUbtJKaMGM3f0I8=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-EUE+Qc+MqsKPqHMYJflZQ6zm3ErW+KLuJq/7HEBf8VM=";
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
git
meson
ninja
pkg-config
wrapGAppsHook4
rustPlatform.cargoSetupHook
cargo
rustc
];
buildInputs = [
dbus
glib
gtk4
libadwaita
openssl
sqlite
];
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ transmission_4 ]}"
)
'';
meta = with lib; {
homepage = "https://gitlab.gnome.org/World/Fragments";
description = "Easy to use BitTorrent client for the GNOME desktop environment";
maintainers = with maintainers; [ emilytrau ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
mainProgram = "fragments";
};
}