-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b0502d
commit b36951b
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ stdenv, fetchFromGitHub }: | ||
stdenv.mkDerivation rec { | ||
name = "janet-${version}"; | ||
|
||
version = "0.4.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "janet-lang"; | ||
repo = "janet"; | ||
rev = "v${version}"; | ||
sha256 = "1590f1fxb6qfhf1vp2xhbvdn2jfrgipn5572cckk1ma7f13jnkpy"; | ||
}; | ||
|
||
JANET_BUILD=''\"release\"''; | ||
|
||
buildPhase = '' | ||
PREFIX="$out" make | ||
''; | ||
|
||
installPhase = '' | ||
mkdir "$out" | ||
PREFIX="$out" make install | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Janet programming language"; | ||
homepage = https://janet-lang.org/; | ||
license = stdenv.lib.licenses.mit; | ||
platforms = platforms.all; | ||
maintainers = with stdenv.lib.maintainers; [ andrewchambers ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters