nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, fetchurl
3, gmp
4}:
5# will probably be obsolte (or at leat built from the upstream gap sources) soon (gap 4.9?). See
6# - https://github.com/gap-system/gap/projects/5#card-6239828
7# - https://github.com/markuspf/gap/issues/2
8# - https://trac.sagemath.org/ticket/22626
9stdenv.mkDerivation rec {
10 name = "libgap-${version}";
11 # Has to be the same version as "gap"
12 version = "4.8.6";
13 src = fetchurl {
14 url = "mirror://sageupstream/libgap/libgap-${version}.tar.gz";
15 sha256 = "1h5fx5a55857w583ql7ly2jl49qyx9mvs7j5abys00ra9gzrpn5v";
16 };
17 buildInputs = [gmp];
18 meta = {
19 inherit version;
20 description = ''A library-packaged fork of the GAP kernel'';
21 license = stdenv.lib.licenses.gpl3Plus;
22 maintainers = [stdenv.lib.maintainers.raskin];
23 platforms = stdenv.lib.platforms.linux;
24 };
25}