Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, makeWrapper, unixtools }: 2 3stdenv.mkDerivation rec { 4 pname = "microscheme"; 5 version = "0.9.3"; 6 7 src = fetchFromGitHub { 8 owner = "ryansuchocki"; 9 repo = "microscheme"; 10 rev = "v${version}"; 11 sha256 = "5qTWsBCfj5DCZ3f9W1bdo6WAc1DZqVxg8D7pwC95duQ="; 12 }; 13 14 postPatch = '' 15 substituteInPlace makefile --replace gcc ${stdenv.cc.targetPrefix}cc 16 ''; 17 18 nativeBuildInputs = [ makeWrapper unixtools.xxd ]; 19 20 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 21 22 meta = with lib; { 23 homepage = "https://ryansuchocki.github.io/microscheme/"; 24 description = "A Scheme subset for Atmel microcontrollers"; 25 longDescription = '' 26 Microscheme is a Scheme subset/variant designed for Atmel 27 microcontrollers, especially as found on Arduino boards. 28 ''; 29 license = licenses.mit; 30 platforms = platforms.all; 31 maintainers = with maintainers; [ ardumont ]; 32 }; 33}