Merge pull request #34801 from clacke/racket-minimal

racket-minimal: init at 6.12.0 (same as racket)
This commit is contained in:
Jörg Thalheim 2018-02-21 12:07:20 +00:00 committed by GitHub
commit 3f90db6c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 2 deletions

View File

@ -35,8 +35,13 @@ stdenv.mkDerivation rec {
name = "racket-${version}";
version = "6.12";
src = fetchurl {
url = "https://mirror.racket-lang.org/installers/${version}/${name}-src.tgz";
src = (stdenv.lib.makeOverridable ({ name, sha256 }:
fetchurl rec {
url = "https://mirror.racket-lang.org/installers/${version}/${name}-src.tgz";
inherit sha256;
}
)) {
inherit name;
sha256 = "0cwcypzjfl9py1s695mhqkiapff7c1w29llsmdj7qgn58wl0apk5";
};

View File

@ -0,0 +1,19 @@
{ racket
}:
racket.overrideAttrs (oldAttrs: rec {
name = "racket-minimal-${oldAttrs.version}";
src = oldAttrs.src.override {
inherit name;
sha256 = "0c565jy2y3gjl5lncd5adjsrj8c24p4i062kphv26ni5q1nn5ip5";
};
meta = oldAttrs.meta // {
description = "Racket without bundled packages, such as Dr. Racket.";
longDescription = ''The essential package racket-libs is included,
as well as libraries that live in collections. In particular, raco
and the pkg library are still bundled.
'';
platforms = [ "x86_64-linux" "aarch64-linux" ];
};
})

View File

@ -7105,6 +7105,7 @@ with pkgs;
# https://github.com/NixOS/nixpkgs/pull/31017#issuecomment-343574769
stdenv = overrideCC stdenv gcc7;
};
racket-minimal = callPackage ../development/interpreters/racket/minimal.nix { };
rakudo = callPackage ../development/interpreters/rakudo {
inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices;