From bfc979c8a0bb355b40495d69bbd56b8b8404d0ec Mon Sep 17 00:00:00 2001 From: "Rommel M. Martinez" Date: Tue, 5 Apr 2016 05:06:52 +0800 Subject: [PATCH] pell: init at 0.0.1 --- pkgs/applications/misc/pell/default.nix | 39 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/applications/misc/pell/default.nix diff --git a/pkgs/applications/misc/pell/default.nix b/pkgs/applications/misc/pell/default.nix new file mode 100644 index 000000000000..f79d71ca2505 --- /dev/null +++ b/pkgs/applications/misc/pell/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchFromGitHub, scsh, sox, libnotify }: + +stdenv.mkDerivation rec { + pname = "pell"; + version = "0.0.1"; + name = "${pname}-${version}"; + + src = fetchFromGitHub { + owner = "ebzzry"; + repo = pname; + rev = "3f95341eb9439c7a6be1f3c6366c0552ab8208f0"; + sha256 = "183aj3ys080g2kahl8x8rkhzlsb6h5ls9xm1v2kasfbn1pi5i6nn"; + }; + + installPhase = '' + mkdir -p $out/bin + mkdir -p $out/share + cp pell $out/bin + cp resources/notification.mp3 $out/share + chmod +x $out/bin/pell + ''; + + postFixup = '' + substituteInPlace $out/bin/pell --replace "/usr/bin/env scsh" "${scsh}/bin/scsh" + substituteInPlace $out/bin/pell --replace "(play " "(${sox}/bin/play " + substituteInPlace $out/bin/pell --replace "(notify-send " "(${libnotify}/bin/notify-send " + substituteInPlace $out/bin/pell --replace "/usr/share/pell/notification.mp3" "$out/share/notification.mp3" + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/ebzzry/pell; + description = "A simple periodic host monitor using ping"; + license = licenses.mit; + maintainers = [ maintainers.ebzzry ]; + platforms = platforms.unix; + }; + + dontBuild = true; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 304a698df67d..504c2e6cda22 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2718,6 +2718,8 @@ in parted = callPackage ../tools/misc/parted { hurd = null; }; + pell = callPackage ../applications/misc/pell { }; + pitivi = callPackage ../applications/video/pitivi { gst = gst_all_1 // { gst-plugins-bad = gst_all_1.gst-plugins-bad.overrideDerivation