mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
nowplaying-cli: init at 1.2.1
This commit is contained in:
parent
acdc68ae37
commit
012d8617a4
40
pkgs/by-name/no/nowplaying-cli/package.nix
Normal file
40
pkgs/by-name/no/nowplaying-cli/package.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, darwin
|
||||
}:
|
||||
|
||||
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=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
darwin.apple_sdk.frameworks.Foundation
|
||||
darwin.apple_sdk.frameworks.AppKit
|
||||
darwin.apple_sdk.frameworks.Cocoa
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D nowplaying-cli $out/bin/nowplaying-cli
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "macOS command-line utility for retrieving currently playing media";
|
||||
homepage = "https://github.com/kirtan-shah/nowplaying-cli";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ emilytrau ];
|
||||
platforms = platforms.darwin;
|
||||
mainProgram = "nowplaying-cli";
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user