2024-09-18 19:27:16 -04:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
makeWrapper,
|
|
|
|
openssl,
|
|
|
|
pkg-config,
|
|
|
|
rustPlatform,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "librespot-auth";
|
|
|
|
version = "0.1.1";
|
|
|
|
|
2024-12-10 22:28:26 -05:00
|
|
|
# deprecated https://github.com/dspearson/librespot-auth
|
2024-09-18 19:27:16 -04:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dspearson";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-IbbArRSKpnljhZSgL0b3EjVzKWN7bk6t0Bv7TkYr8FI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoLock = {
|
2024-11-21 10:51:55 -05:00
|
|
|
lockFile = "${src}/Cargo.lock";
|
2024-09-18 19:27:16 -04:00
|
|
|
outputHashes = {
|
|
|
|
"librespot-core-0.5.0-dev" = "sha256-7HrA1hWEy5lliwgJ9amJy+Kd8lB50b3q2niaFWWwcYE=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple program for populating a credentials.json via Spotify's zeroconf authentication.";
|
|
|
|
mainProgram = pname;
|
|
|
|
homepage = "https://github.com/dspearson/librespot-auth";
|
|
|
|
license = with licenses; [isc];
|
|
|
|
};
|
|
|
|
}
|