mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
42 lines
827 B
Nix
42 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 ];
|
|
};
|
|
}
|