about summary refs log tree commit diff
path: root/pkgs/development/compilers/gavrasm
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2022-01-20 19:24:13 +0100
committerGitHub <noreply@github.com>2022-01-20 19:24:13 +0100
commit3bb7adabff067834560359819c5791b8e843c5a7 (patch)
tree629e94f9d56daf4502d727d5bd0184fc98d032c4 /pkgs/development/compilers/gavrasm
parentc296bec1ded959079e32f6524f90b59753ea3181 (diff)
downloadnixlib-3bb7adabff067834560359819c5791b8e843c5a7.tar
nixlib-3bb7adabff067834560359819c5791b8e843c5a7.tar.gz
nixlib-3bb7adabff067834560359819c5791b8e843c5a7.tar.bz2
nixlib-3bb7adabff067834560359819c5791b8e843c5a7.tar.lz
nixlib-3bb7adabff067834560359819c5791b8e843c5a7.tar.xz
nixlib-3bb7adabff067834560359819c5791b8e843c5a7.tar.zst
nixlib-3bb7adabff067834560359819c5791b8e843c5a7.zip
gavrasm: 4.5 -> 5.1
Diffstat (limited to 'pkgs/development/compilers/gavrasm')
-rw-r--r--pkgs/development/compilers/gavrasm/default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/development/compilers/gavrasm/default.nix b/pkgs/development/compilers/gavrasm/default.nix
index 6bd813b56cfb..0a969a80c121 100644
--- a/pkgs/development/compilers/gavrasm/default.nix
+++ b/pkgs/development/compilers/gavrasm/default.nix
@@ -1,36 +1,45 @@
 { lib, stdenv, fetchzip, fpc , lang ? "en" } :
+
 assert lib.assertOneOf "lang" lang ["cn" "de" "en" "fr" "tr"];
+
 stdenv.mkDerivation rec {
   pname = "gavrasm";
-  version = "4.5";
+  version = "5.1";
+  flatVersion = lib.strings.replaceStrings ["."] [""] version;
 
   src = fetchzip {
-    url ="http://www.avr-asm-tutorial.net/gavrasm/v45/gavrasm_sources_lin_45.zip";
-    sha256 = "1f5g5ran74pznwj4g7vfqh2qhymaj3p26f2lvzbmlwq447iid52c";
+    url = "http://www.avr-asm-tutorial.net/gavrasm/v${flatVersion}/gavrasm_sources_lin_${flatVersion}.zip";
+    sha256 = "0k94f8k4980wvhx3dpl1savpx4wqv9r5090l0skg2k8vlhsv58gf";
     stripRoot=false;
   };
 
   nativeBuildInputs = [ fpc ];
 
   configurePhase = ''
+    runHook preConfigure
     cp gavrlang_${lang}.pas gavrlang.pas
+    runHook postConfigure
   '';
 
   buildPhase = ''
+    runHook preBuild
     fpc gavrasm.pas
+    runHook postBuild
   '';
 
   installPhase = ''
+    runHook preInstall
     mkdir -p $out/bin
     cp gavrasm $out/bin
     mkdir -p $out/doc
     cp instr.asm $out/doc
     cp ReadMe.Txt $out/doc
     cp LiesMich.Txt $out/doc
+    runHook postInstall
   '';
 
   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";
     license = licenses.unfree;
     maintainers = with maintainers; [ mafo ];