forked from mirrors/nixpkgs
c47a3b0663
* Don't "externalize url/rev/sha256 to permit easier override". Just override 'src' itself. Then you can get the source from anywhere, not just git. I needed to touch this anyway, because I want to use fetchzip instead of fetchgit for releases (no need to clone repo). * Latest release has "make install" improvements, simplifying our install.
34 lines
949 B
Nix
34 lines
949 B
Nix
{ stdenv, fetchzip, vim, avrdude, avrgcclibc, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "microscheme-${version}";
|
|
version = "0.9.2";
|
|
|
|
src = fetchzip {
|
|
name = "${name}-src";
|
|
url = "https://github.com/ryansuchocki/microscheme/archive/v${version}.tar.gz";
|
|
sha256 = "0ly1cphvnsip70kng9q0blb07pkyp9allav42sr6ybswqfqg60j9";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper vim ];
|
|
|
|
installPhase = ''
|
|
make install PREFIX=$out
|
|
|
|
wrapProgram $out/bin/microscheme \
|
|
--prefix PATH : "${avrdude}/bin:${avrgcclibc}/bin"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://microscheme.org;
|
|
description = "A Scheme subset for Atmel microcontrollers";
|
|
longDescription = ''
|
|
Microscheme is a Scheme subset/variant designed for Atmel
|
|
microcontrollers, especially as found on Arduino boards.
|
|
'';
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ardumont ];
|
|
};
|
|
}
|