git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #107439 from sbond75/cakelisp
commit594ba151ca70acba4b219f136cb98a32541fdf48 authorSandro <sandro.jaeckel@gmail.com> dateFri 8 Jan 2021, 00:14 (6 years ago) parentb6fe20a805788f
3 files changed+50
maintainers/maintainer-list.nix+6 pkgs/development/compilers/cakelisp/default.nix+42 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -7989,6 +7989,12 @@
79897989 githubId = 720864;
79907990 name = "Sébastien Bourdeauducq";
79917991 };
7992+ sbond75 = {
7993+ name = "sbond75";
7994+ email = "43617712+sbond75@users.noreply.github.com";
7995+ github = "sbond75";
7996+ githubId = 43617712;
7997+ };
79927998 sboosali = {
79937999 email = "SamBoosalis@gmail.com";
79948000 github = "sboosali";
pkgs/development/compilers/cakelisp/default.nixnew file+42
@@ -0,0 +1,42 @@
1+{ stdenv, fetchFromGitHub, gcc }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "cakelisp";
5+ version = "0.1.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "makuto";
9+ repo = "cakelisp";
10+ rev = "v${version}";
11+ sha256 = "126va59jy7rvy6c2wrf8j44m307f2d8jixqkc49s9wllxprj1dmg";
12+ };
13+
14+ buildInputs = [ gcc ];
15+
16+ postPatch = ''
17+ substituteInPlace runtime/HotReloading.cake \
18+ --replace '"/usr/bin/g++"' '"${gcc}/bin/g++"'
19+ substituteInPlace src/ModuleManager.cpp \
20+ --replace '"/usr/bin/g++"' '"${gcc}/bin/g++"'
21+ '' + stdenv.lib.optionalString stdenv.isDarwin ''
22+ substituteInPlace Build.sh --replace '--export-dynamic' '-export_dynamic'
23+ substituteInPlace runtime/HotReloading.cake --replace '--export-dynamic' '-export_dynamic'
24+ substituteInPlace Bootstrap.cake --replace '--export-dynamic' '-export_dynamic'
25+ '';
26+
27+ buildPhase = ''
28+ ./Build.sh
29+ '';
30+
31+ installPhase = ''
32+ install -Dm755 bin/cakelisp -t $out/bin
33+ '';
34+
35+ meta = with stdenv.lib; {
36+ description = "A performance-oriented Lisp-like language";
37+ homepage = "https://github.com/makuto/cakelisp";
38+ license = licenses.gpl3Plus;
39+ platforms = platforms.darwin ++ platforms.linux;
40+ maintainers = [ maintainers.sbond75 ];
41+ };
42+}
pkgs/top-level/all-packages.nix+2
@@ -9047,6 +9047,8 @@ in
90479047 gmp-static = gmp.override { withStatic = true; };
90489048 };
90499049
9050+ cakelisp = callPackage ../development/compilers/cakelisp { };
9051+
90509052 ciao = callPackage ../development/compilers/ciao { };
90519053
90529054 colm = callPackage ../development/compilers/colm { };