summary refs log tree commit diff
path: root/pkgs/applications/misc/sleepyhead
diff options
context:
space:
mode:
authorKristoffer <kristoffer@microdisko.no>2018-04-09 19:49:49 +0200
committerKristoffer <kristoffer@microdisko.no>2018-04-09 19:49:49 +0200
commit1ee4331a309b1932c3e1ea3dbe12961fff9ae875 (patch)
tree3d196f82c09a53d75795689b6e887e893d6010be /pkgs/applications/misc/sleepyhead
parent849a68597082c2a5adf83d5e122c9689f81d1cee (diff)
downloadnixlib-1ee4331a309b1932c3e1ea3dbe12961fff9ae875.tar
nixlib-1ee4331a309b1932c3e1ea3dbe12961fff9ae875.tar.gz
nixlib-1ee4331a309b1932c3e1ea3dbe12961fff9ae875.tar.bz2
nixlib-1ee4331a309b1932c3e1ea3dbe12961fff9ae875.tar.lz
nixlib-1ee4331a309b1932c3e1ea3dbe12961fff9ae875.tar.xz
nixlib-1ee4331a309b1932c3e1ea3dbe12961fff9ae875.tar.zst
nixlib-1ee4331a309b1932c3e1ea3dbe12961fff9ae875.zip
sleepyhead: init at 1.0.0-beta
By git revision since last tag 1.0.0-beta2 is over a year old and
doesn't seem to build
Diffstat (limited to 'pkgs/applications/misc/sleepyhead')
-rw-r--r--pkgs/applications/misc/sleepyhead/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/misc/sleepyhead/default.nix b/pkgs/applications/misc/sleepyhead/default.nix
new file mode 100644
index 000000000000..cf5c4625c952
--- /dev/null
+++ b/pkgs/applications/misc/sleepyhead/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchgit, qt5, zlib, libGLU, libX11 }:
+
+let
+  name = "sleepyhead-${version}";
+  version = "1.0.0-beta-git";
+in stdenv.mkDerivation {
+  inherit name;
+
+  src = fetchgit {
+    url = https://gitlab.com/sleepyhead/sleepyhead-code.git;
+    rev = "9e2329d8bca45693231b5e3dae80063717c24578";
+    sha256 = "0448z8gyaxpgpnksg34lzmffj36jdpm0ir4xxa5gvzagkx0wk07h";
+  };
+
+  buildInputs = [
+    qt5.qtbase qt5.qtwebkit qt5.qtserialport
+    zlib
+    libGLU
+    libX11
+  ];
+
+  patchPhase = ''
+    patchShebangs configure
+  '';
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp sleepyhead/SleepyHead $out/bin
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://sleepyhead.jedimark.net/;
+    description = "Review and explore data produced by CPAP and related machines";
+    longDescription = ''
+      SleepyHead is cross platform, opensource sleep tracking program for reviewing CPAP and Oximetry data, which are devices used in the treatment of Sleep Disorders like Obstructive Sleep Apnea.
+    '';
+    license = licenses.gpl3;
+    platforms = platforms.all;
+    maintainers = [ maintainers.krav ];
+  };
+
+}