add librespot-auth package

main
Felix Stupp 1 year ago
parent ad613d11e2
commit 0f31ad218c
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,5 +1,20 @@
{
"nodes": {
"crane": {
"locked": {
"lastModified": 1725125250,
"narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=",
"owner": "ipetkov",
"repo": "crane",
"rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"disko": {
"inputs": {
"nixpkgs": [
@ -106,6 +121,7 @@
},
"root": {
"inputs": {
"crane": "crane",
"disko": "disko",
"home-manager": "home-manager",
"impermanence": "impermanence",

@ -24,6 +24,8 @@
inputs.nixpkgs.follows = "nixpkgs";
};
crane.url = "github:ipetkov/crane";
# required for configs
nixos-hardware.url = "github:NixOS/nixos-hardware/master";

@ -1,7 +1,17 @@
{ lib, outputs, ... }@flakeArg:
{
inputs,
lib,
outputs,
...
}@flakeArg:
{ pkgs, system, ... }@sysArg:
let
craneLib = inputs.crane.mkLib pkgs;
in
{
librespot-auth = pkgs.callPackage ./librespot-auth { inherit craneLib; };
nft-update-addresses = pkgs.callPackage ./nft-update-addresses { };
secrix-wrapper =

@ -0,0 +1,35 @@
{
stdenv,
lib,
fetchFromGitHub,
# from flake
craneLib,
}:
# TODO temporary useful due to https://github.com/hrkfdn/ncspot/issues/1500
craneLib.buildPackage rec {
pname = "librespot-auth";
version = "0.1.1";
src = fetchFromGitHub {
owner = "dspearson";
repo = "librespot-auth";
rev = "v${version}";
hash = "sha256-IbbArRSKpnljhZSgL0b3EjVzKWN7bk6t0Bv7TkYr8FI=";
};
buildInputs = [ ];
enableParallelBuilding = true;
# Ensure Rust compiles for the right target
env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTarget;
meta = with lib; {
description = "A simple program for populating a `credentials.json` for librespot via Spotify's zeroconf authentication.";
homepage = "https://github.com/dspearson/librespot-auth";
changelog = "https://github.com/dspearson/librespot-auth/releases/tag/v${version}";
license = licenses.isc;
mainProgram = "librespot-auth";
};
}
Loading…
Cancel
Save