summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-04-28 11:51:35 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-04-28 11:51:35 +0200
commit5ffaa3126e1a35309a09d5bd356dbe363de91d88 (patch)
tree0ae812e7cf2cfc58553816628ee9ab438acbe251
parent080bdb964e0c5edbce8c0f87f6160b39365879f5 (diff)
downloadutils-5ffaa3126e1a35309a09d5bd356dbe363de91d88.tar
utils-5ffaa3126e1a35309a09d5bd356dbe363de91d88.tar.gz
utils-5ffaa3126e1a35309a09d5bd356dbe363de91d88.tar.bz2
utils-5ffaa3126e1a35309a09d5bd356dbe363de91d88.tar.xz
utils-5ffaa3126e1a35309a09d5bd356dbe363de91d88.zip
Added nix expressions
-rwxr-xr-x[-rw-r--r--]cliparg0
-rw-r--r--nix/cliparg.nix25
-rw-r--r--nix/default.nix7
-rw-r--r--nixexprs.tar.xzbin0 -> 664 bytes
4 files changed, 32 insertions, 0 deletions
diff --git a/cliparg b/cliparg
index 5bc3aaa..5bc3aaa 100644..100755
--- a/cliparg
+++ b/cliparg
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
7stdenv.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}
diff --git a/nix/default.nix b/nix/default.nix
new file mode 100644
index 0000000..9aadc46
--- /dev/null
+++ b/nix/default.nix
@@ -0,0 +1,7 @@
1{}:
2
3let
4 pkgs = import <nixpkgs> {};
5in rec {
6 cliparg = pkgs.callPackage (import ./cliparg.nix) {};
7}
diff --git a/nixexprs.tar.xz b/nixexprs.tar.xz
new file mode 100644
index 0000000..d2f8e62
--- /dev/null
+++ b/nixexprs.tar.xz
Binary files differ