1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

spectral: 2018-09-24 -> 2019-03-03

Recent redesign, features, fixes.
This commit is contained in:
Will Dietz 2019-03-03 22:10:42 -06:00
parent 7874ca5b61
commit ad3d9c0204

View file

@ -1,26 +1,42 @@
{ stdenv, fetchgit { stdenv, fetchgit
, pkgconfig , pkgconfig, makeWrapper
, qmake, qtbase, qtquickcontrols2, qtmultimedia , qmake, qtbase, qtquickcontrols2, qtmultimedia
, libpulseaudio , libpulseaudio
# Not mentioned but seems needed # Not mentioned but seems needed
, qtgraphicaleffects , qtgraphicaleffects
# Unsure but needed by similar , qtdeclarative
, qtdeclarative, qtsvg
}: }:
stdenv.mkDerivation rec { let
name = "spectral-${version}"; # Following "borrowed" from yubikey-manager-qt
version = "2018-09-24"; qmlPath = qmlLib: "${qmlLib}/${qtbase.qtQmlPrefix}";
inherit (stdenv) lib;
qml2ImportPath = lib.concatMapStringsSep ":" qmlPath [
qtbase.bin qtdeclarative.bin qtquickcontrols2.bin qtgraphicaleffects qtmultimedia
];
in stdenv.mkDerivation rec {
pname = "spectral";
version = "2019-03-03";
src = fetchgit { src = fetchgit {
url = "https://gitlab.com/b0/spectral.git"; url = "https://gitlab.com/b0/spectral.git";
rev = "c9d1d6887722860a52b597a0f74d0ce39c8622e1"; rev = "0473f25d38a064ee4e18203ec16eeae84fea4866";
sha256 = "1ym8jlqls4lcq5rd81vxw1dni79fc6ph00ip8nsydl6i16fngl4c"; sha256 = "1n09ginw6g0p42xj3zgxm52dvyyvj5psllv70vx21i50lvkbh9rw";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ pkgconfig qmake ]; qmakeFlags = [ "CONFIG+=qtquickcompiler" "BUNDLE_FONT=true" ];
buildInputs = [ qtbase qtquickcontrols2 qtmultimedia qtgraphicaleffects qtdeclarative qtsvg ]
postInstall = ''
wrapProgram $out/bin/spectral \
--set QML2_IMPORT_PATH "${qml2ImportPath}"
'';
nativeBuildInputs = [ pkgconfig qmake makeWrapper ];
buildInputs = [ qtbase qtquickcontrols2 qtmultimedia qtgraphicaleffects qtdeclarative ]
++ stdenv.lib.optional stdenv.hostPlatform.isLinux libpulseaudio; ++ stdenv.lib.optional stdenv.hostPlatform.isLinux libpulseaudio;
meta = with stdenv.lib; { meta = with stdenv.lib; {