forked from mirrors/nixpkgs
tigerbeetle: fix build after 0.14.174
This commit is contained in:
parent
a898c8af67
commit
e7fad70b03
|
@ -6,20 +6,27 @@
|
|||
, tigerbeetle
|
||||
, nix-update-script
|
||||
}:
|
||||
let
|
||||
# Read [these comments](pkgs/development/compilers/zig/hook.nix#L12-L30) on the default Zig flags, and the associated links. tigerbeetle stopped exposing the `-Doptimize` build flag, so we can't use the default Nixpkgs zig hook as-is. tigerbeetle only exposes a boolean `-Drelease` flag which we'll add in the tigerbeetle derivation in this file.
|
||||
custom_zig_hook = zig_0_11.hook.overrideAttrs (previousAttrs: {
|
||||
zig_default_flags = builtins.filter (flag: builtins.match "-Doptimize.*" flag == null) previousAttrs.zig_default_flags;
|
||||
});
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "tigerbeetle";
|
||||
version = "0.14.171";
|
||||
version = "0.14.175";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tigerbeetle";
|
||||
repo = "tigerbeetle";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-MjsNQarRXsrWKJZ2aBi/Wc2HAYm3isLBNw81a75+nhc=";
|
||||
hash = "sha256-MabY6kfK/SZ2ps8RZkI6cDhMdHasc1fk6+PKBfVMRm0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ zig_0_11.hook ];
|
||||
nativeBuildInputs = [ custom_zig_hook ];
|
||||
|
||||
zigBuildFlags = [
|
||||
"-Drelease"
|
||||
"-Dgit-commit=0000000000000000000000000000000000000000"
|
||||
"-Dversion=${finalAttrs.version}"
|
||||
];
|
||||
|
@ -37,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
description = "A financial accounting database designed to be distributed and fast";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ danielsidhion ];
|
||||
platforms = lib.platforms.unix;
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "tigerbeetle";
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue