Skip to content

Instantly share code, notes, and snippets.

@dhess
Created January 10, 2018 08:14
Show Gist options
  • Save dhess/4d8982c5af415c988b7c2c696fdc6ff2 to your computer and use it in GitHub Desktop.
Save dhess/4d8982c5af415c988b7c2c696fdc6ff2 to your computer and use it in GitHub Desktop.
{ stdenv, makeWrapper, pkgs, perl, perlPackages, samba, zfs }:
let
in
stdenv.mkDerivation rec {
name = "bo-peep";
version = "1.0";
src = ./.;
# propagatedBuildInputs = with python2Packages; [
# pyinotify
# pylast
# mutagen
# ];
buildInputs = [
makeWrapper
perl
perlPackages.ArrayFIFO
perlPackages.ProcFind
perlPackages.PodUsage
perlPackages.SysSyslog
];
installPhase = let path = stdenv.lib.makeBinPath [
samba zfs
]; in ''
mkdir -p $out/bin
cp bo-peep $out/bin
wrapProgram $out/bin/bo-peep --set PERL5LIB $PERL5LIB --prefix PATH : "${path}"
'';
meta = {
description = "bo-peep counts sheep (ZFS rops and wops)";
maintainers = [ "Drew Hess <[email protected]>" ];
license = pkgs.lib.licenses.mit;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment