47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
nix-update-script,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "alistral";
|
|
version = "0.5.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RustyNova016";
|
|
repo = "Alistral";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-wiNXwg6mC24nWwakA9cX8OYDOhghoEgm0yVR3Tmtod4=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-M3nwa93vzVm+GtCdmBn/jqIvgJRcULw+8FFFLPmfbyg=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
# Wants to create config file where it s not allowed
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
homepage = "https://rustynova016.github.io/Alistral/";
|
|
changelog = "https://github.com/RustyNova016/Alistral/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
description = "Power tools for Listenbrainz";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jopejoe1 ];
|
|
mainProgram = "alistral";
|
|
};
|
|
})
|