microscheme: update to latest release (0.9.2)
* 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.
This commit is contained in:
parent
39ff896253
commit
c47a3b0663
@ -1,27 +1,19 @@
|
|||||||
{ stdenv, fetchgit, vim, avrdude, avrgcclibc, makeWrapper }:
|
{ stdenv, fetchzip, vim, avrdude, avrgcclibc, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "microscheme-${version}";
|
name = "microscheme-${version}";
|
||||||
version = "2015-02-04";
|
version = "0.9.2";
|
||||||
|
|
||||||
# externalize url/rev/sha256 to permit easier override
|
src = fetchzip {
|
||||||
rev = "2f14781034a67adc081a22728fbf47a632f4484e";
|
name = "${name}-src";
|
||||||
sha256 = "15bdlmchzbhxj262r2fj78wm4c4hfrap4kyzv8n5b624svszr0zd";
|
url = "https://github.com/ryansuchocki/microscheme/archive/v${version}.tar.gz";
|
||||||
url = https://github.com/ryansuchocki/microscheme.git;
|
sha256 = "0ly1cphvnsip70kng9q0blb07pkyp9allav42sr6ybswqfqg60j9";
|
||||||
|
|
||||||
src = fetchgit {
|
|
||||||
inherit rev;
|
|
||||||
inherit sha256;
|
|
||||||
inherit url;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper vim ];
|
buildInputs = [ makeWrapper vim ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin && make install PREFIX=$out
|
make install PREFIX=$out
|
||||||
|
|
||||||
mkdir -p $out/share/microscheme/
|
|
||||||
cp -r examples/ $out/share/microscheme
|
|
||||||
|
|
||||||
wrapProgram $out/bin/microscheme \
|
wrapProgram $out/bin/microscheme \
|
||||||
--prefix PATH : "${avrdude}/bin:${avrgcclibc}/bin"
|
--prefix PATH : "${avrdude}/bin:${avrgcclibc}/bin"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user