about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorArseniy Seroka <jagajaga@users.noreply.github.com>2016-04-05 19:32:02 +0300
committerArseniy Seroka <jagajaga@users.noreply.github.com>2016-04-05 19:32:02 +0300
commit028c0b78bde3b05808f653b6448d999a6a20f7a0 (patch)
tree1db79d38ed0287144a36e8b02e72c133a65c93a4 /pkgs
parent95856303d803e5c82648c89219f09618c83d5453 (diff)
parentbfc979c8a0bb355b40495d69bbd56b8b8404d0ec (diff)
downloadnixlib-028c0b78bde3b05808f653b6448d999a6a20f7a0.tar
nixlib-028c0b78bde3b05808f653b6448d999a6a20f7a0.tar.gz
nixlib-028c0b78bde3b05808f653b6448d999a6a20f7a0.tar.bz2
nixlib-028c0b78bde3b05808f653b6448d999a6a20f7a0.tar.lz
nixlib-028c0b78bde3b05808f653b6448d999a6a20f7a0.tar.xz
nixlib-028c0b78bde3b05808f653b6448d999a6a20f7a0.tar.zst
nixlib-028c0b78bde3b05808f653b6448d999a6a20f7a0.zip
Merge pull request #14452 from ebzzry/pell-0.0.1
pell: init at 0.0.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/pell/default.nix39
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 41 insertions, 0 deletions
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 af60b1478308..de9b4470a4f0 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