2019-07-22 10:55:52 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, bash
|
|
|
|
, cmake
|
2023-01-15 00:00:28 +01:00
|
|
|
, boost
|
|
|
|
, xercesc
|
|
|
|
, xalanc
|
2019-07-22 10:55:52 +02:00
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtmultimedia
|
|
|
|
, qtsvg
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "brewtarget";
|
2023-01-15 00:00:28 +01:00
|
|
|
version = "3.0.5";
|
2019-07-22 10:55:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Brewtarget";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-15 00:00:28 +01:00
|
|
|
sha256 = "sha256-PqaiZ2eLH8+qRRkIolnQClTL9O9EgHMqFH/nUffosV8=";
|
2019-07-22 10:55:52 +02:00
|
|
|
};
|
|
|
|
|
2023-01-15 00:00:28 +01:00
|
|
|
nativeBuildInputs = [ cmake boost xercesc xalanc ];
|
|
|
|
buildInputs = [ qtbase qttools qtmultimedia qtsvg ];
|
2019-07-22 10:55:52 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
chmod +x configure
|
|
|
|
substituteInPlace configure --replace /bin/bash "${bash}/bin/bash"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open source beer recipe creation tool";
|
|
|
|
homepage = "http://www.brewtarget.org/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
};
|
|
|
|
}
|