Skip to content

Commit e70cc72

Browse files
authored
alistral: init at 0.5.2 (#387385)
2 parents 6562072 + 7905d34 commit e70cc72

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
rustPlatform,
6+
nix-update-script,
7+
pkg-config,
8+
openssl,
9+
}:
10+
11+
rustPlatform.buildRustPackage (finalAttrs: {
12+
pname = "alistral";
13+
version = "0.5.2";
14+
15+
src = fetchFromGitHub {
16+
owner = "RustyNova016";
17+
repo = "Alistral";
18+
tag = "v${finalAttrs.version}";
19+
hash = "sha256-bt0WCmnk/DAEuQeEvBe5Vdk/AxpfRAafPiEJ7v8HK8Y=";
20+
};
21+
22+
# remove if updating to rust 1.85
23+
postPatch = ''
24+
substituteInPlace Cargo.toml \
25+
--replace-fail "[package]" ''$'cargo-features = ["edition2024"]\n[package]'\
26+
--replace-fail 'rust-version = "1.85.0"' ""
27+
'';
28+
29+
useFetchCargoVendor = true;
30+
cargoHash = "sha256-BxJmoJbnGfsA+YCvzUvgnkoHl/ClrwHoE3NjlctjCxA=";
31+
32+
env.RUSTC_BOOTSTRAP = 1;
33+
34+
nativeBuildInputs = [
35+
pkg-config
36+
];
37+
38+
buildInputs = [
39+
openssl
40+
];
41+
42+
# Wants to create config file where it s not allowed
43+
doCheck = false;
44+
45+
passthru.updateScript = nix-update-script { };
46+
47+
meta = {
48+
homepage = "https://rustynova016.github.io/Alistral/";
49+
changelog = "https://github.com/RustyNova016/Alistral/blob/${finalAttrs.src.tag}/CHANGELOG.md";
50+
description = "Power tools for Listenbrainz";
51+
license = lib.licenses.mit;
52+
maintainers = with lib.maintainers; [ jopejoe1 ];
53+
mainProgram = "alistral";
54+
};
55+
})

0 commit comments

Comments
 (0)