Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 53 lines 941 B view raw
1{ 2 stdenvNoCC, 3 lib, 4 fetchFromGitHub, 5 ffmpeg, 6 xdotool, 7 slop, 8 libnotify, 9 procps, 10 makeWrapper, 11}: 12 13stdenvNoCC.mkDerivation rec { 14 pname = "giph"; 15 version = "1.1.1"; 16 17 src = fetchFromGitHub { 18 owner = "phisch"; 19 repo = "giph"; 20 rev = version; 21 sha256 = "19l46m1f32b3bagzrhaqsfnl5n3wbrmg3sdy6fdss4y1yf6nqayk"; 22 }; 23 24 dontConfigure = true; 25 26 dontBuild = true; 27 28 installFlags = [ "PREFIX=${placeholder "out"}" ]; 29 30 nativeBuildInputs = [ makeWrapper ]; 31 32 postInstall = '' 33 wrapProgram $out/bin/giph \ 34 --prefix PATH : ${ 35 lib.makeBinPath [ 36 ffmpeg 37 xdotool 38 libnotify 39 slop 40 procps 41 ] 42 } 43 ''; 44 45 meta = with lib; { 46 homepage = "https://github.com/phisch/giph"; 47 description = "Simple gif recorder"; 48 license = licenses.mit; 49 maintainers = [ maintainers.lom ]; 50 platforms = platforms.linux; 51 mainProgram = "giph"; 52 }; 53}