This PR makes a few changes to how things are done: a) build and install "koch" - the nim make-type tool b) use "koch" to bootstrap nim c) build additional supporting tools such as nimble, nimgrep and nimsuggest d) nim can use other c compilers than gcc, so instead of forcing gcc we use the one from stdenv e) run the full test suite We do not need the "nimble" package any longer as it is part of nim.wip/yesman
parent
f673243aff
commit
4e0a5e7602
@ -1,40 +0,0 @@ |
||||
{ stdenv, fetchFromGitHub, nim, openssl }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "nimble-${version}"; |
||||
|
||||
version = "0.7.10"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "nim-lang"; |
||||
repo = "nimble"; |
||||
rev = "v${version}"; |
||||
sha256 = "1bcv8chir73nn6x7q8n3sw2scf3m0x2w9gkkzx162ryivza1nm1r"; |
||||
}; |
||||
|
||||
buildInputs = [ nim openssl ]; |
||||
|
||||
patchPhase = '' |
||||
substituteInPlace src/nimble.nim.cfg --replace "./vendor/nim" "${nim}/share" |
||||
echo "--clib:crypto" >> src/nimble.nim.cfg |
||||
''; |
||||
|
||||
buildPhase = '' |
||||
cd src && nim c -d:release nimble |
||||
''; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/bin |
||||
cp nimble $out/bin |
||||
''; |
||||
|
||||
dontStrip = true; |
||||
|
||||
meta = with stdenv.lib; { |
||||
description = "Package manager for the Nim programming language"; |
||||
homepage = https://github.com/nim-lang/nimble; |
||||
license = licenses.bsd2; |
||||
maintainers = with maintainers; [ kamilchm ]; |
||||
platforms = platforms.linux ++ platforms.darwin; |
||||
}; |
||||
} |
Loading…
Reference in new issue