blob: fc47967113c13be6fca76bd80178e16806b1f198 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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";
};
})
|