Skip to content

Instantly share code, notes, and snippets.

@gilligan
Created August 11, 2017 16:18
Show Gist options
  • Save gilligan/f5bc1c94e9c661ec9cc60f8eee69a04b to your computer and use it in GitHub Desktop.
Save gilligan/f5bc1c94e9c661ec9cc60f8eee69a04b to your computer and use it in GitHub Desktop.
nix-venient-0.1-overlay.nix
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