OSCAR: 1.3.0 -> 1.3.1

* OSCAR: 1.3.0 -> 1.3.1 (#159715)

* OSCAR: use SPDX3 license identifier
and define eligible platforms using the proper attributes

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
This commit is contained in:
R. RyanTM 2022-02-25 05:24:23 -08:00 committed by GitHub
parent 82d753eecf
commit e68fc84783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,13 @@
{ lib, stdenv, mkDerivation, fetchFromGitLab, qmake, qtbase, qttools, qtserialport, libGLU }: { lib, stdenv, mkDerivation, fetchFromGitLab, qmake, qtbase, qttools, qtserialport, libGLU }:
mkDerivation rec { mkDerivation rec {
pname = "OSCAR"; pname = "OSCAR";
version = "1.3.0"; version = "1.3.1";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "pholy"; owner = "pholy";
repo = "OSCAR-code"; repo = "OSCAR-code";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-oKKwX5HiT8RACiqzZegOxH6IHQn/u0N4ih/ubH6YYjg="; sha256 = "sha256-/70NoyiQ33RFdSTBAyi5c/JPZ2AV1/iRvkAZ6VjpUXw=";
}; };
buildInputs = [ qtbase qttools qtserialport libGLU ]; buildInputs = [ qtbase qttools qtserialport libGLU ];
@ -19,6 +19,7 @@ mkDerivation rec {
qmakeFlags = [ "OSCAR_QT.pro" ]; qmakeFlags = [ "OSCAR_QT.pro" ];
installPhase = '' installPhase = ''
runHook preInstall
install -d $out/bin install -d $out/bin
install -d $out/share/OSCAR/Help install -d $out/share/OSCAR/Help
install -d $out/share/OSCAR/Html install -d $out/share/OSCAR/Html
@ -32,15 +33,16 @@ mkDerivation rec {
install oscar/Translations/* $out/share/OSCAR/Translations install oscar/Translations/* $out/share/OSCAR/Translations
install -T Building/Linux/OSCAR.png $out/share/icons/OSCAR/OSCAR.png install -T Building/Linux/OSCAR.png $out/share/icons/OSCAR/OSCAR.png
install -T Building/Linux/OSCAR.desktop $out/share/applications/OSCAR.desktop install -T Building/Linux/OSCAR.desktop $out/share/applications/OSCAR.desktop
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://www.sleepfiles.com/OSCAR/"; 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"; description = "Software for reviewing and exploring data produced by CPAP and related machines used in the treatment of sleep apnea";
license = licenses.gpl3; license = licenses.gpl3Only;
maintainers = [ maintainers.roconnor ]; maintainers = [ maintainers.roconnor ];
# Someone needs to create a suitable installPhase for Darwin and Windows. # Someone needs to create a suitable installPhase for Darwin and Windows.
# See https://gitlab.com/pholy/OSCAR-code/-/tree/master/Building. # See https://gitlab.com/pholy/OSCAR-code/-/tree/master/Building.
broken = !stdenv.hostPlatform.isLinux; platforms = platforms.linux;
}; };
} }