summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorroconnor <roconnor@theorem.ca>2020-11-01 14:25:49 -0500
committerGitHub <noreply@github.com>2020-11-01 14:25:49 -0500
commiteaf06c30ace7e0221e18edd30b6dbda0e4a16162 (patch)
tree5b8baa8fa9927920635163f192754b8d705481c8 /pkgs/applications
parentda0692246671ba5b554f8d56f6bc4c1cd5914126 (diff)
parent069e485c189e4815fbb463c7dc0dfbfa7b1e4686 (diff)
downloadnixpkgs-eaf06c30ace7e0221e18edd30b6dbda0e4a16162.tar
nixpkgs-eaf06c30ace7e0221e18edd30b6dbda0e4a16162.tar.gz
nixpkgs-eaf06c30ace7e0221e18edd30b6dbda0e4a16162.tar.bz2
nixpkgs-eaf06c30ace7e0221e18edd30b6dbda0e4a16162.tar.lz
nixpkgs-eaf06c30ace7e0221e18edd30b6dbda0e4a16162.tar.xz
nixpkgs-eaf06c30ace7e0221e18edd30b6dbda0e4a16162.tar.zst
nixpkgs-eaf06c30ace7e0221e18edd30b6dbda0e4a16162.zip
Merge pull request #101945 from roconnor/OSCAR
OSCAR: init at 1.2.0
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/misc/OSCAR/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/misc/OSCAR/default.nix b/pkgs/applications/misc/OSCAR/default.nix
new file mode 100644
index 00000000000..e619ad8c697
--- /dev/null
+++ b/pkgs/applications/misc/OSCAR/default.nix
@@ -0,0 +1,46 @@
+{ stdenv, mkDerivation, fetchFromGitLab, qmake, qtbase, qttools, qtserialport, libGLU }:
+mkDerivation rec {
+  pname = "OSCAR";
+  version = "1.2.0";
+
+  src = fetchFromGitLab {
+    owner = "pholy";
+    repo = "OSCAR-code";
+    rev = "v${version}";
+    sha256 = "10r37d8c2avr167n2s9lhld1c9hmckm444fq163z1jsy9jpid6mg";
+  };
+
+  buildInputs = [ qtbase qttools qtserialport libGLU ];
+  nativeBuildInputs = [ qmake ];
+  postPatch = ''
+    substituteInPlace oscar/oscar.pro --replace "/bin/bash" "${stdenv.shell}"
+  '';
+
+  qmakeFlags = [ "OSCAR_QT.pro" ];
+
+  installPhase = ''
+    install -d $out/bin
+    install -d $out/share/OSCAR/Help
+    install -d $out/share/OSCAR/Html
+    install -d $out/share/OSCAR/Translations
+    install -d $out/share/icons/OSCAR
+    install -d $out/share/applications
+    install -T oscar/OSCAR $out/bin/OSCAR
+    # help browser was removed 'temporarily' in https://gitlab.com/pholy/OSCAR-code/-/commit/57c3e4c33ccdd2d0eddedbc24c0e4f2969da3841
+    # install oscar/Help/* $out/share/OSCAR/Help
+    install oscar/Html/* $out/share/OSCAR/Html
+    install oscar/Translations/* $out/share/OSCAR/Translations
+    install -T Building/Linux/OSCAR.png $out/share/icons/OSCAR/OSCAR.png
+    install -T Building/Linux/OSCAR.desktop $out/share/applications/OSCAR.desktop
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = "https://www.sleepfiles.com/OSCAR/";
+    description = "Software for reviewing and exploring data produced by CPAP and related machines used in the treatment of sleep apnea";
+    license = licenses.gpl3;
+    maintainers = [ maintainers.roconnor ];
+    # Someone needs to create a suitable installPhase for Darwin and Windows.
+    # See https://gitlab.com/pholy/OSCAR-code/-/tree/master/Building.
+    broken = !stdenv.hostPlatform.isLinux;
+  };
+}