571c71e6f7
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.
36 lines
679 B
Nix
36 lines
679 B
Nix
{ lib, stdenv
|
|
, fetchFromBitbucket
|
|
, autoreconfHook
|
|
|
|
# Reverse dependency
|
|
, sage
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.1";
|
|
pname = "lrcalc";
|
|
|
|
src = fetchFromBitbucket {
|
|
owner = "asbuch";
|
|
repo = "lrcalc";
|
|
rev = "lrcalc-${version}";
|
|
sha256 = "0s3amf3z75hnrjyszdndrvk4wp5p630dcgyj341i6l57h43d1p4k";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
|
|
passthru.tests = { inherit sage; };
|
|
|
|
meta = with lib; {
|
|
description = "Littlewood-Richardson calculator";
|
|
homepage = "http://math.rutgers.edu/~asbuch/lrcalc/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = teams.sage.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|