Created
January 10, 2018 08:14
-
-
Save dhess/4d8982c5af415c988b7c2c696fdc6ff2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ 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