sleepyhead: use qt5.makeDerivation and fix for Darwin (#88806)
This commit is contained in:
parent
08b229bde0
commit
4c1bab5057
@ -1,9 +1,9 @@
|
|||||||
{ stdenv, fetchgit, qt5, zlib, libGLU, libX11 }:
|
{ lib, stdenv, mkDerivation, fetchgit, zlib, libGLU, libX11, qtbase, qtwebkit, qtserialport, wrapQtAppsHook }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "sleepyhead-${version}";
|
name = "sleepyhead-${version}";
|
||||||
version = "1.0.0-beta-git";
|
version = "1.0.0-beta-git";
|
||||||
in stdenv.mkDerivation {
|
in mkDerivation {
|
||||||
inherit name;
|
inherit name;
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
@ -13,21 +13,30 @@ in stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
qt5.qtbase qt5.qtwebkit qt5.qtserialport
|
qtbase qtwebkit qtserialport
|
||||||
zlib
|
zlib
|
||||||
libGLU
|
libGLU
|
||||||
libX11
|
libX11
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
patchShebangs configure
|
patchShebangs configure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = if stdenv.isDarwin then ''
|
||||||
|
mkdir -p $out/Applications
|
||||||
|
cp -r sleepyhead/SleepyHead.app $out/Applications
|
||||||
|
'' else ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp sleepyhead/SleepyHead $out/bin
|
cp sleepyhead/SleepyHead $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
wrapQtApp "$out/Applications/SleepyHead.app/Contents/MacOS/SleepyHead"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://sleepyhead.jedimark.net/";
|
homepage = "https://sleepyhead.jedimark.net/";
|
||||||
description = "Review and explore data produced by CPAP and related machines";
|
description = "Review and explore data produced by CPAP and related machines";
|
||||||
@ -37,7 +46,6 @@ in stdenv.mkDerivation {
|
|||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = [ maintainers.krav ];
|
maintainers = [ maintainers.krav ];
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -6660,7 +6660,7 @@ in
|
|||||||
|
|
||||||
sleuthkit = callPackage ../tools/system/sleuthkit {};
|
sleuthkit = callPackage ../tools/system/sleuthkit {};
|
||||||
|
|
||||||
sleepyhead = callPackage ../applications/misc/sleepyhead {};
|
sleepyhead = libsForQt5.callPackage ../applications/misc/sleepyhead {};
|
||||||
|
|
||||||
slirp4netns = callPackage ../tools/networking/slirp4netns/default.nix { };
|
slirp4netns = callPackage ../tools/networking/slirp4netns/default.nix { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user