Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 35 lines 1.0 kB view raw
1{ stdenv, fetchzip, vim, avrdude, avrbinutils, avrgcc, avrlibc, makeWrapper }: 2 3stdenv.mkDerivation rec { 4 name = "microscheme-${version}"; 5 version = "0.9.3"; 6 7 src = fetchzip { 8 name = "${name}-src"; 9 url = "https://github.com/ryansuchocki/microscheme/archive/v${version}.tar.gz"; 10 sha256 = "1r3ng4pw1s9yy1h5rafra1rq19d3vmb5pzbpcz1913wz22qdd976"; 11 }; 12 13 # Just a guess 14 propagatedBuildInputs = [ avrlibc ]; 15 buildInputs = [ makeWrapper vim ]; 16 17 installPhase = '' 18 make install PREFIX=$out 19 20 wrapProgram $out/bin/microscheme \ 21 --prefix PATH : "${stdenv.lib.makeBinPath [ avrdude avrgcc avrbinutils ]}" 22 ''; 23 24 meta = with stdenv.lib; { 25 homepage = http://microscheme.org; 26 description = "A Scheme subset for Atmel microcontrollers"; 27 longDescription = '' 28 Microscheme is a Scheme subset/variant designed for Atmel 29 microcontrollers, especially as found on Arduino boards. 30 ''; 31 license = licenses.mit; 32 platforms = platforms.linux; 33 maintainers = with maintainers; [ ardumont ]; 34 }; 35}