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 +++++++++++++++++++++++++ nix/default.nix | 7 +++++++ 2 files changed, 32 insertions(+) create mode 100644 nix/cliparg.nix create mode 100644 nix/default.nix (limited to '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 + ''; +} 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) {}; +} -- cgit v1.2.3