depot/third_party/nixpkgs/pkgs/applications/misc/brewtarget/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

41 lines
827 B
Nix

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