Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 pkg-config, 5 fetchFromGitHub, 6 file, 7 iniparser, 8 ffmpeg, 9 libnotify, 10 libmpdclient, 11 discount, 12 systemd, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "mpd-notification"; 17 version = "0.9.1"; 18 19 src = fetchFromGitHub { 20 owner = "eworm-de"; 21 repo = "mpd-notification"; 22 rev = version; 23 hash = "sha256-8iBG1IdbERB2gOALvVBNJ3/hhiou3D/azSRkRD+u9O8="; 24 }; 25 26 nativeBuildInputs = [ 27 pkg-config 28 ]; 29 30 buildInputs = [ 31 iniparser 32 libnotify 33 file 34 ffmpeg 35 libmpdclient 36 discount 37 systemd 38 ]; 39 40 installPhase = '' 41 runHook preInstall 42 43 mkdir -p $out/bin 44 mv mpd-notification $out/bin 45 46 mkdir -p $out/lib/systemd/user 47 cp systemd/mpd-notification.service $out/lib/systemd/user 48 49 runHook postInstall 50 ''; 51 52 postPatch = '' 53 substituteInPlace systemd/mpd-notification.service --replace /usr $out 54 ''; 55 56 meta = with lib; { 57 description = "Notifications for mpd"; 58 homepage = "https://github.com/eworm-de/mpd-notification"; 59 license = licenses.gpl3Plus; 60 maintainers = with maintainers; [ CaitlinDavitt ]; 61 platforms = platforms.unix; 62 mainProgram = "mpd-notification"; 63 }; 64}