Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 955 B view raw
1{ stdenv 2, fetchFromGitHub 3, docopt 4, requests 5, smugpy 6, python 7, pkgs 8}: 9 10stdenv.mkDerivation rec { 11 name = "${pname}-${version}"; 12 pname = "smugline"; 13 version = "20160106"; 14 15 src = fetchFromGitHub { 16 owner = "gingerlime"; 17 repo = pname; 18 rev = "134554c574c2d282112ba60165a8c5ffe0f16fd4"; 19 sha256 = "00n012ijkdrx8wsl8x3ghdcxcdp29s4kwr3yxvlyj79g5yhfvaj6"; 20 }; 21 22 phases = [ "unpackPhase" "installPhase" ]; 23 24 buildInputs = [ python pkgs.makeWrapper ]; 25 propagatedBuildInputs = [ docopt requests smugpy ]; 26 27 installPhase = '' 28 mkdir -p $out/bin $out/libexec 29 cp smugline.py $out/libexec 30 makeWrapper ${python.interpreter} $out/bin/smugline \ 31 --add-flags "$out/libexec/smugline.py" \ 32 --prefix PYTHONPATH : "$PYTHONPATH" 33 ''; 34 35 meta = with stdenv.lib; { 36 homepage = https://github.com/gingerlime/smugline; 37 description = "A simple command line tool for smugmug "; 38 license = licenses.mit; 39 }; 40 41}