gavrasm: 4.5 -> 5.1
This commit is contained in:
parent
c296bec1de
commit
3bb7adabff
|
@ -1,36 +1,45 @@
|
||||||
{ lib, stdenv, fetchzip, fpc , lang ? "en" } :
|
{ lib, stdenv, fetchzip, fpc , lang ? "en" } :
|
||||||
|
|
||||||
assert lib.assertOneOf "lang" lang ["cn" "de" "en" "fr" "tr"];
|
assert lib.assertOneOf "lang" lang ["cn" "de" "en" "fr" "tr"];
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gavrasm";
|
pname = "gavrasm";
|
||||||
version = "4.5";
|
version = "5.1";
|
||||||
|
flatVersion = lib.strings.replaceStrings ["."] [""] version;
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url ="http://www.avr-asm-tutorial.net/gavrasm/v45/gavrasm_sources_lin_45.zip";
|
url = "http://www.avr-asm-tutorial.net/gavrasm/v${flatVersion}/gavrasm_sources_lin_${flatVersion}.zip";
|
||||||
sha256 = "1f5g5ran74pznwj4g7vfqh2qhymaj3p26f2lvzbmlwq447iid52c";
|
sha256 = "0k94f8k4980wvhx3dpl1savpx4wqv9r5090l0skg2k8vlhsv58gf";
|
||||||
stripRoot=false;
|
stripRoot=false;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ fpc ];
|
nativeBuildInputs = [ fpc ];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
|
runHook preConfigure
|
||||||
cp gavrlang_${lang}.pas gavrlang.pas
|
cp gavrlang_${lang}.pas gavrlang.pas
|
||||||
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
fpc gavrasm.pas
|
fpc gavrasm.pas
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp gavrasm $out/bin
|
cp gavrasm $out/bin
|
||||||
mkdir -p $out/doc
|
mkdir -p $out/doc
|
||||||
cp instr.asm $out/doc
|
cp instr.asm $out/doc
|
||||||
cp ReadMe.Txt $out/doc
|
cp ReadMe.Txt $out/doc
|
||||||
cp LiesMich.Txt $out/doc
|
cp LiesMich.Txt $out/doc
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://www.avr-asm-tutorial.net/gavrasm";
|
homepage = "http://www.avr-asm-tutorial.net/gavrasm/";
|
||||||
description = "AVR Assembler for ATMEL AVR-Processors";
|
description = "AVR Assembler for ATMEL AVR-Processors";
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
maintainers = with maintainers; [ mafo ];
|
maintainers = with maintainers; [ mafo ];
|
||||||
|
|
Loading…
Reference in a new issue