flakes/packages/jellyfin-tui.nix

36 lines
726 B
Nix
Raw Normal View History

2025-01-07 04:24:35 +01:00
{ pkgs, craneLib }:
let
commonArgs = {
src = pkgs.fetchFromGitHub {
owner = "dhonus";
repo = "jellyfin-tui";
rev = "200657d421dd4cfb605f8417778c0c58d97dd1f9";
hash = "sha256-Tcc4e8oz2OZfdO9iNvU+TjJlct2IB5iJ3u2usf9D7iY=";
};
strictDeps = true;
LIBCCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
nativeBuildInputs = with pkgs; [
openssl
pkg-config
];
buildInputs =
with pkgs;
[
mpv
perl
openssl
pkg-config
]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv
];
};
in
craneLib.buildPackage (
commonArgs
// {
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
}
)