1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/by-name/de/delfin/package.nix

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

78 lines
1.3 KiB
Nix
Raw Normal View History

2023-12-20 09:43:46 +00:00
{ lib
, stdenv
, appstream
, cargo
, desktop-file-utils
, fetchFromGitea
, gitUpdater
, gtk4
, libadwaita
, libepoxy
, libglvnd
, meson
, mpv
, ninja
, openssl
, pkg-config
, rustPlatform
, rustc
, wrapGAppsHook4
}:
stdenv.mkDerivation rec {
pname = "delfin";
2024-05-29 16:29:35 +01:00
version = "0.4.5";
2023-12-20 09:43:46 +00:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "avery42";
repo = "delfin";
rev = "v${version}";
2024-05-29 16:29:35 +01:00
hash = "sha256-iqibdVMf4RBl/EuFvE6tEPDliYmRtIYCW/mO+nNKcWU=";
2023-12-20 09:43:46 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2024-05-29 16:29:35 +01:00
hash = "sha256-2V2jx78S0Gj4/w3oduH/s7Pd6XG/GCs4lwhFCdGVdd8=";
2023-12-20 09:43:46 +00:00
};
nativeBuildInputs = [
appstream
desktop-file-utils
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
cargo
rustc
wrapGAppsHook4
];
buildInputs = [
gtk4
libadwaita
libglvnd
libepoxy
mpv
openssl
];
mesonFlags = [
(lib.mesonOption "profile" "release")
];
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
meta = with lib; {
description = "Stream movies and TV shows from Jellyfin";
homepage = "https://www.delfin.avery.cafe/";
license = licenses.gpl3Only;
2024-04-24 18:54:56 +01:00
maintainers = with maintainers; [ colinsane avery ];
2023-12-20 09:43:46 +00:00
mainProgram = "delfin";
platforms = platforms.linux;
};
}