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