{ stdenv , fetchgit , makeWrapper , xclip }: stdenv.mkDerivation rec { inherit xclip; name = "cliparg-${version}"; version = "0.1"; src = fetchgit { name = name; url = git://git.yggdrasil.li/utils; rev = "080bdb964e0c5edbce8c0f87f6160b39365879f5"; sha256 = "08fa72881340b2ba4d84e15f4628fa9f92cf8bd49d279f9d39e0fea4d7a07986"; }; buildInputs = [ makeWrapper ]; buildPhase = ""; installPhase = '' mkdir -p $out/bin cp $src/cliparg $out/bin/ chmod +x $out/bin/cliparg wrapProgram $out/bin/cliparg --prefix PATH : ${xclip}/bin ''; }