summaryrefslogtreecommitdiff
path: root/nix/cliparg.nix
blob: 8aa9a71b027800d51182687d2c9c1c0d3c582d4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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
  '';
}