This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
35 lines
783 B
Nix
35 lines
783 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "nowplaying-cli";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kirtan-shah";
|
|
repo = "nowplaying-cli";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-FkyrtgsGzpK2rLNr+oxfPUbX43TVXYeiBg7CN1JUg8Y=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D nowplaying-cli $out/bin/nowplaying-cli
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "macOS command-line utility for retrieving currently playing media";
|
|
homepage = "https://github.com/kirtan-shah/nowplaying-cli";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ emilytrau ];
|
|
platforms = lib.platforms.darwin;
|
|
mainProgram = "nowplaying-cli";
|
|
};
|
|
})
|