Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "nowplaying-cli"; 9 version = "1.2.1"; 10 11 src = fetchFromGitHub { 12 owner = "kirtan-shah"; 13 repo = "nowplaying-cli"; 14 rev = "v${finalAttrs.version}"; 15 hash = "sha256-FkyrtgsGzpK2rLNr+oxfPUbX43TVXYeiBg7CN1JUg8Y="; 16 }; 17 18 installPhase = '' 19 runHook preInstall 20 21 install -D nowplaying-cli $out/bin/nowplaying-cli 22 23 runHook postInstall 24 ''; 25 26 meta = with lib; { 27 description = "macOS command-line utility for retrieving currently playing media"; 28 homepage = "https://github.com/kirtan-shah/nowplaying-cli"; 29 license = licenses.gpl3Only; 30 maintainers = with maintainers; [ emilytrau ]; 31 platforms = platforms.darwin; 32 mainProgram = "nowplaying-cli"; 33 }; 34})