Created
August 11, 2017 16:18
-
-
Save gilligan/f5bc1c94e9c661ec9cc60f8eee69a04b to your computer and use it in GitHub Desktop.
nix-venient-0.1-overlay.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self: super: | |
{ | |
nix-venient = | |
let | |
inherit (super) stdenv lib curl jq makeWrapper fetchFromGitHub; | |
in | |
stdenv.mkDerivation rec { | |
version = "0.1"; | |
name = "nix-venient-${version}"; | |
src = fetchFromGitHub { | |
owner = "holidaycheck"; | |
repo = "nix-venient"; | |
rev = "828a84eddbbb53282f236ad7e9ae3899dd3b85f2"; | |
sha256 = "1v515pigbgqzd2yd4rrmx6xdln6wpg7addacgny39nqk96z5957f"; | |
}; | |
nativeBuildInputs = [ makeWrapper ]; | |
buildPhase = ":"; | |
installPhase = '' | |
mkdir -p $out/bin | |
cp -R nix-venient lib $out/bin | |
wrapProgram $out/bin/nix-venient --suffix PATH : ${lib.makeBinPath [ curl jq ]} | |
''; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment