1 { lib, stdenv, fetchFromGitHub, mlton, unzip }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1xmbdnfc34ia0a78dhkfv5jyadxndinhw8c47l1mjd4l7n8vqnph";
14 enableParallelBuilding = true;
16 nativeBuildInputs = [ mlton ];
18 # Set as an environment variable in all the phase scripts.
22 installFlags = ["prefix=$(out)"];
26 nativeCheckInputs = [ unzip ];
28 # We cannot run the pkgtests, as Nix does not allow network
37 description = "Generic package manager for Standard ML libraries and programs";
38 homepage = "https://github.com/diku-dk/smlpkg";
39 license = licenses.mit;
40 platforms = mlton.meta.platforms;
41 maintainers = with maintainers; [ athas ];
42 mainProgram = "smlpkg";