1 { lib, stdenv, fetchzip, fpc , lang ? "en" } :
3 assert lib.assertOneOf "lang" lang ["cn" "de" "en" "fr" "tr"];
5 stdenv.mkDerivation rec {
8 flatVersion = lib.strings.replaceStrings ["."] [""] version;
11 url = "http://www.avr-asm-tutorial.net/gavrasm/v${flatVersion}/gavrasm_sources_lin_${flatVersion}.zip";
12 sha256 = "sha256-uTalb8Wzn2RAoUKZx9RZFCX+V9HUEtUnJ4eSltFumh0=";
16 nativeBuildInputs = [ fpc ];
20 cp gavrlang_${lang}.pas gavrlang.pas
36 cp ReadMe.Txt $out/doc
37 cp LiesMich.Txt $out/doc
42 homepage = "http://www.avr-asm-tutorial.net/gavrasm/";
43 description = "AVR Assembler for ATMEL AVR-Processors";
44 license = licenses.unfree;
45 maintainers = with maintainers; [ mafo ];
46 platforms = platforms.linux;