Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 34 lines 961 B view raw
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 mainProgram = "microscheme"; 26 longDescription = '' 27 Microscheme is a Scheme subset/variant designed for Atmel 28 microcontrollers, especially as found on Arduino boards. 29 ''; 30 license = licenses.mit; 31 platforms = platforms.all; 32 maintainers = with maintainers; [ ardumont ]; 33 }; 34}