36 lines
726 B
Nix
36 lines
726 B
Nix
|
{ 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;
|
||
|
}
|
||
|
)
|