python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / no / nowplaying-cli / package.nix
blobfc47967113c13be6fca76bd80178e16806b1f198
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , darwin
5 }:
7 stdenv.mkDerivation (finalAttrs: {
8   pname = "nowplaying-cli";
9   version = "1.2.1";
11   src = fetchFromGitHub {
12     owner = "kirtan-shah";
13     repo = "nowplaying-cli";
14     rev = "v${finalAttrs.version}";
15     hash = "sha256-FkyrtgsGzpK2rLNr+oxfPUbX43TVXYeiBg7CN1JUg8Y=";
16   };
18   buildInputs = [
19     darwin.apple_sdk.frameworks.Foundation
20     darwin.apple_sdk.frameworks.AppKit
21     darwin.apple_sdk.frameworks.Cocoa
22   ];
24   installPhase = ''
25     runHook preInstall
27     install -D nowplaying-cli $out/bin/nowplaying-cli
29     runHook postInstall
30   '';
32   meta = with lib; {
33     description = "macOS command-line utility for retrieving currently playing media";
34     homepage = "https://github.com/kirtan-shah/nowplaying-cli";
35     license = licenses.gpl3Only;
36     maintainers = with maintainers; [ emilytrau ];
37     platforms = platforms.darwin;
38     mainProgram = "nowplaying-cli";
39   };