From 5ffaa3126e1a35309a09d5bd356dbe363de91d88 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Apr 2015 11:51:35 +0200 Subject: Added nix expressions --- nix/cliparg.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nix/cliparg.nix (limited to 'nix/cliparg.nix') 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 @@ +{ 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 + ''; +} -- cgit v1.2.3