Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 29 lines 897 B view raw
1{ lib, stdenv, fetchFromGitHub, makeWrapper, curl, jq, gnugrep, libnotify, scrot, which, xclip }: 2 3let deps = lib.makeBinPath [ curl jq gnugrep libnotify scrot which xclip ]; 4in stdenv.mkDerivation rec { 5 version = "2.0.0"; 6 pname = "imgur-screenshot"; 7 8 src = fetchFromGitHub { 9 owner = "jomo"; 10 repo = "imgur-screenshot"; 11 rev = "v${version}"; 12 sha256 = "0fkhvfraijbrw806pgij41bn1hc3r7l7l3snkicmshxj83lmsd5k"; 13 }; 14 15 nativeBuildInputs = [ makeWrapper ]; 16 17 installPhase = '' 18 install -Dm755 imgur-screenshot $out/bin/imgur-screenshot 19 wrapProgram $out/bin/imgur-screenshot --prefix PATH ':' ${deps} 20 ''; 21 22 meta = with lib; { 23 description = "A tool for easy screencapping and uploading to imgur"; 24 homepage = "https://github.com/jomo/imgur-screenshot/"; 25 platforms = platforms.linux; 26 license = licenses.mit; 27 maintainers = with maintainers; [ lw ]; 28 }; 29}