From b9b5678eacde92724f411a5836a21ea5c204e6e5 Mon Sep 17 00:00:00 2001 From: Negate This Date: Fri, 15 Dec 2023 21:22:14 -0500 Subject: [PATCH 1/2] maintainers: add negatethis --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d20aa7db61ad..f2fdfeed8c4c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12924,6 +12924,12 @@ githubId = 3747396; name = "Nathan Isom"; }; + negatethis = { + email = "negatethis@envs.net"; + github = "negatethis"; + githubId = 26014535; + name = "Negate This"; + }; neilmayhew = { email = "nix@neil.mayhew.name"; github = "neilmayhew"; From 01bc4d1e857fa5a9954792564d6c939c7709dbdf Mon Sep 17 00:00:00 2001 From: Negate This Date: Mon, 18 Dec 2023 18:16:12 -0500 Subject: [PATCH 2/2] rescrobbled: init at 0.7.1 --- pkgs/by-name/re/rescrobbled/package.nix | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/re/rescrobbled/package.nix diff --git a/pkgs/by-name/re/rescrobbled/package.nix b/pkgs/by-name/re/rescrobbled/package.nix new file mode 100644 index 000000000000..d9d41f806ae2 --- /dev/null +++ b/pkgs/by-name/re/rescrobbled/package.nix @@ -0,0 +1,46 @@ +{ lib +, bash +, fetchFromGitHub +, rustPlatform +, pkg-config +, openssl +, dbus +}: + +rustPlatform.buildRustPackage rec { + + pname = "rescrobbled"; + version = "0.7.1"; + + src = fetchFromGitHub { + owner = "InputUsername"; + repo = "rescrobbled"; + rev = "v${version}"; + hash = "sha256-1E+SeKjHCah+IFn2QLAyyv7jgEcZ1gtkh8iHgiVBuz4="; + }; + + cargoHash = "sha256-ZJbyYFvGTuXt1aqhGOATcDRrkTk7SorWXkN81sUoDdo="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl dbus ]; + + postPatch = '' + # Required for tests + substituteInPlace src/filter.rs --replace '#!/usr/bin/bash' '#!${bash}/bin/bash' + ''; + + postInstall = '' + substituteInPlace rescrobbled.service --replace '%h/.cargo/bin/rescrobbled' "$out/bin/rescrobbled" + install -Dm644 rescrobbled.service -t "$out/share/systemd/user" + ''; + + meta = with lib; { + description = "MPRIS music scrobbler daemon"; + homepage = "https://github.com/InputUsername/rescrobbled"; + license = licenses.gpl3Plus; + mainProgram = "rescrobbled"; + platforms = platforms.unix; + maintainers = with maintainers; [ negatethis ]; + }; +}