mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
Diff: https://github.com/form-dev/form/compare/v4.3.1...v5.0.0 Changelog: https://github.com/form-dev/form/wiki/Release-Notes-FORM-5.0.0
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
gmp,
|
|
zstd,
|
|
mpfr,
|
|
zlib,
|
|
flint,
|
|
}:
|
|
let
|
|
zstd_src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = "zstd";
|
|
# latest commit on dev (only branch that has that folder) that changed zlibWrapper (https://github.com/facebook/zstd/commits/dev/zlibWrapper)
|
|
rev = "0b96e6d42a9b22eb472a050fcd2cc4be3ffb8e2b";
|
|
hash = "sha256-EPsLRjCCj0ruQ+z7eBzr/ACF0wh5LzUmdpbw/w5moWU=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "form";
|
|
version = "5.0.0";
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "form-dev";
|
|
repo = "form";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-cYO8B5uDJQ9eUc4w5Le47su3JS/jGYwUFtHFunuQaJc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
|
|
buildInputs = [
|
|
gmp
|
|
mpfr
|
|
zstd
|
|
zlib
|
|
flint
|
|
];
|
|
|
|
postUnpack = ''
|
|
mkdir -p source/extern/zstd
|
|
cp -r ${zstd_src}/zlibWrapper source/extern/zstd/
|
|
chmod -R +w source
|
|
'';
|
|
|
|
meta = {
|
|
description = "Symbolic manipulation of very big expressions";
|
|
homepage = "https://www.nikhef.nl/~form/";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = [ lib.maintainers.veprbl ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|