racket-minimal: init at 6.12.0 (same as racket)

Racket without the bundled packages, such as Mr Racket.

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.
This commit is contained in:
Claes Wallin (韋嘉誠) 2018-02-05 23:04:52 +08:00
parent ad78e52357
commit 435bceb69e
3 changed files with 18 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,10 @@
{ racket
}:
racket.overrideAttrs (oldAttrs: rec {
name = "racket-minimal-${oldAttrs.version}";
src = oldAttrs.src.override {
inherit name;
sha256 = "0c565jy2y3gjl5lncd5adjsrj8c24p4i062kphv26ni5q1nn5ip5";
};
})

View file

@ -7015,6 +7015,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;