mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
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
1000 B
Nix
36 lines
1000 B
Nix
{ lib, stdenv, fetchFromGitHub, gmp, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mosml";
|
|
version = "2.10.1";
|
|
|
|
buildInputs = [ gmp perl ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kfl";
|
|
repo = "mosml";
|
|
rev = "ver-${version}";
|
|
sha256 = "sha256-GK39WvM7NNhoC5f0Wjy4/5VWT+Rbh2qo+W71hWrbPso=";
|
|
};
|
|
|
|
setSourceRoot = ''export sourceRoot="$(echo */src)"'';
|
|
|
|
# MosML needs a specific RPATH entry pointing to $(out)/lib (added
|
|
# by the build system), which patchelf will remove.
|
|
dontPatchELF = true;
|
|
|
|
meta = with lib; {
|
|
description = "Light-weight implementation of Standard ML";
|
|
longDescription = ''
|
|
Moscow ML is a light-weight implementation of Standard ML (SML), a strict
|
|
functional language used in teaching and research.
|
|
'';
|
|
homepage = "https://mosml.org/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ vaibhavsagar ];
|
|
};
|
|
}
|