Files
nixpkgs/pkgs/by-name/br/brewtarget/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
meson,
ninja,
boost,
pandoc,
pkg-config,
xercesc,
xalanc,
qt6Packages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "brewtarget";
version = "4.2.1";
src = fetchFromGitHub {
owner = "Brewtarget";
repo = "brewtarget";
tag = "v${finalAttrs.version}";
hash = "sha256-/BEVnAtuwDnJXra9EAMD3LhA/93nFJ5ObCSgSy3CJnk=";
fetchSubmodules = true;
};
postPatch = ''
# 3 sed statements from below derived from AUR
# Disable boost-stacktrace_backtrace, requires an optional boost lib that's only built in Debianland
sed -i "/boostModules += 'stacktrace_backtrace'/ {N;N;d}" meson.build
# Make libbacktrace not required, we're not running the bt script
sed -i "/compiler\.find_library('backtrace'/ {n;s/true/false/}" meson.build
# Disable static linking
sed -i 's/static : true/static : false/g' meson.build
'';
nativeBuildInputs = [
meson
cmake
ninja
pkg-config
qt6Packages.wrapQtAppsHook
pandoc
];
buildInputs = [
boost
qt6Packages.qtbase
qt6Packages.qttools
qt6Packages.qtmultimedia
qt6Packages.qtsvg
xercesc
xalanc
];
meta = {
description = "Open source beer recipe creation tool";
mainProgram = "brewtarget";
homepage = "http://www.brewtarget.org/";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [
avnik
mmahut
];
};
})