nixpkgs/pkgs/by-name/sy/symmetrica/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

40 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchFromGitLab
, autoreconfHook
}:
stdenv.mkDerivation rec {
pname = "symmetrica";
version = "3.0.1";
# Fork of the original symmetrica, which can be found here
# http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/index.html
# "This fork was created to modernize the codebase, and to resume making
# releases with the fixes that have accrued over the years."
# Also see https://trac.sagemath.org/ticket/29061#comment:3.
src = fetchFromGitLab {
owner = "sagemath";
repo = "symmetrica";
rev = version;
sha256 = "0wfmrzw82f5i91d7rf24mcdqcj2fmgrgy02pw4pliz7ncwaq14w3";
};
nativeBuildInputs = [
autoreconfHook
];
# clang warning: passing arguments to '...' without a prototype is deprecated
# in all versions of C and is not supported in C23.
CFLAGS = "-std=c99 -Wno-deprecated-non-prototype";
enableParallelBuilding = true;
meta = with lib; {
description = "Collection of routines for representation theory and combinatorics";
license = licenses.isc;
maintainers = teams.sage.members;
platforms = platforms.unix;
homepage = "https://gitlab.com/sagemath/symmetrica";
};
}