mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
polyml: cleanup and mark cross broken
Compilation requires running one of the make build targets, so cross
compilation isn't possible
Also remove old design patterns in favour of newer ones.
(cherry picked from commit 6e36170c0f)
This commit is contained in:
parent
e5eb5cbed4
commit
d9611a2cd7
1 changed files with 9 additions and 9 deletions
|
|
@ -7,14 +7,17 @@
|
|||
libffi,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "polyml";
|
||||
version = "5.9.2";
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "polyml";
|
||||
repo = "polyml";
|
||||
rev = "v${version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-dHP5XNoLcFIqASfZVWu3MtY3B3H66skEl8ohlwTGyyM=";
|
||||
};
|
||||
|
||||
|
|
@ -44,12 +47,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
make check
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Standard ML compiler and interpreter";
|
||||
longDescription = ''
|
||||
|
|
@ -58,8 +55,11 @@ stdenv.mkDerivation rec {
|
|||
homepage = "https://www.polyml.org/";
|
||||
license = lib.licenses.lgpl21;
|
||||
platforms = with lib.platforms; (linux ++ darwin);
|
||||
# Broken as make target `polyimport.o` requires running code
|
||||
# compiled by the cross-compiler
|
||||
broken = !(stdenv.buildPlatform.canExecute stdenv.hostPlatform);
|
||||
maintainers = with lib.maintainers; [
|
||||
kovirobi
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue