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 --- cliparg | 0 nix/cliparg.nix | 25 +++++++++++++++++++++++++ nix/default.nix | 7 +++++++ nixexprs.tar.xz | Bin 0 -> 664 bytes 4 files changed, 32 insertions(+) mode change 100644 => 100755 cliparg create mode 100644 nix/cliparg.nix create mode 100644 nix/default.nix create mode 100644 nixexprs.tar.xz diff --git a/cliparg b/cliparg old mode 100644 new mode 100755 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 + ''; +} 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 @@ +{}: + +let + pkgs = import {}; +in rec { + cliparg = pkgs.callPackage (import ./cliparg.nix) {}; +} diff --git a/nixexprs.tar.xz b/nixexprs.tar.xz new file mode 100644 index 0000000..d2f8e62 Binary files /dev/null and b/nixexprs.tar.xz differ -- cgit v1.2.3