forked from mirrors/nixpkgs
Merge pull request #125952 from musfay/micropython
micropython: 1.13 -> 1.15
This commit is contained in:
commit
9a3f486709
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "micropython";
|
pname = "micropython";
|
||||||
version = "1.13";
|
version = "1.15";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "micropython";
|
owner = "micropython";
|
||||||
repo = "micropython";
|
repo = "micropython";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0m9g6isys4pnlnkdmrw7lxaxdrjn02j481wz5x5cdrmrbi4zi17z";
|
sha256 = "11bf1lq4kgfs1nzg5cnshh2dqxyk5w2k816i04innri6fj0g7y6p";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -25,13 +25,15 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pushd tests
|
pushd tests
|
||||||
MICROPY_MICROPYTHON=../ports/unix/micropython ${python3.interpreter} ./run-tests
|
MICROPY_MICROPYTHON=../ports/unix/micropython ${python3.interpreter} ./run-tests.py
|
||||||
popd
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install -Dm755 ports/unix/micropython $out/bin/micropython
|
install -Dm755 ports/unix/micropython -t $out/bin
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue