python3Packages.instructor: 1.6.4 -> 1.72 (#378975)
[NixPkgs.git] / pkgs / applications / misc / brewtarget / default.nix
blob72e7df62486a0b185c6f54bcbf75ca5a254d4a02
2   lib,
3   mkDerivation,
4   fetchFromGitHub,
5   bash,
6   cmake,
7   boost,
8   xercesc,
9   xalanc,
10   qtbase,
11   qttools,
12   qtmultimedia,
13   qtsvg,
16 mkDerivation rec {
17   pname = "brewtarget";
18   version = "3.0.5";
20   src = fetchFromGitHub {
21     owner = "Brewtarget";
22     repo = pname;
23     rev = "v${version}";
24     sha256 = "sha256-PqaiZ2eLH8+qRRkIolnQClTL9O9EgHMqFH/nUffosV8=";
25   };
27   nativeBuildInputs = [
28     cmake
29     boost
30     xercesc
31     xalanc
32   ];
33   buildInputs = [
34     qtbase
35     qttools
36     qtmultimedia
37     qtsvg
38   ];
40   preConfigure = ''
41     chmod +x configure
42     substituteInPlace configure --replace /bin/bash "${bash}/bin/bash"
43   '';
45   meta = with lib; {
46     description = "Open source beer recipe creation tool";
47     mainProgram = "brewtarget";
48     homepage = "http://www.brewtarget.org/";
49     license = licenses.gpl3;
50     maintainers = [ maintainers.mmahut ];
51   };