diff options
Diffstat (limited to 'nix/cliparg.nix')
-rw-r--r-- | nix/cliparg.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nix/cliparg.nix b/nix/cliparg.nix new file mode 100644 index 0000000..fcb2066 --- /dev/null +++ b/nix/cliparg.nix | |||
@@ -0,0 +1,25 @@ | |||
1 | { stdenv | ||
2 | , fetchgit | ||
3 | , makeWrapper | ||
4 | , xclip | ||
5 | }: | ||
6 | |||
7 | stdenv.mkDerivation rec { | ||
8 | inherit xclip; | ||
9 | name = "cliparg-${version}"; | ||
10 | version = "0.1"; | ||
11 | src = fetchgit { | ||
12 | name = name; | ||
13 | url = git://git.yggdrasil.li/utils; | ||
14 | rev = "080bdb964e0c5edbce8c0f87f6160b39365879f5"; | ||
15 | sha256 = "08fa72881340b2ba4d84e15f4628fa9f92cf8bd49d279f9d39e0fea4d7a07986"; | ||
16 | }; | ||
17 | buildInputs = [ makeWrapper ]; | ||
18 | buildPhase = ""; | ||
19 | installPhase = '' | ||
20 | mkdir -p $out/bin | ||
21 | cp $src/cliparg $out/bin/ | ||
22 | chmod +x $out/bin/cliparg | ||
23 | wrapProgram $out/bin/cliparg --prefix PATH : ${xclip}/bin | ||
24 | ''; | ||
25 | } | ||