tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
gavrasm: 4.5 -> 5.1
authored by
Renaud
and committed by
GitHub
4 years ago
3bb7adab
c296bec1
+13
-4
1 changed file
expand all
collapse all
unified
split
pkgs
development
compilers
gavrasm
default.nix
+13
-4
pkgs/development/compilers/gavrasm/default.nix
reviewed
···
1
1
{ lib, stdenv, fetchzip, fpc , lang ? "en" } :
2
2
+
2
3
assert lib.assertOneOf "lang" lang ["cn" "de" "en" "fr" "tr"];
4
4
+
3
5
stdenv.mkDerivation rec {
4
6
pname = "gavrasm";
5
5
-
version = "4.5";
7
7
+
version = "5.1";
8
8
+
flatVersion = lib.strings.replaceStrings ["."] [""] version;
6
9
7
10
src = fetchzip {
8
8
-
url ="http://www.avr-asm-tutorial.net/gavrasm/v45/gavrasm_sources_lin_45.zip";
9
9
-
sha256 = "1f5g5ran74pznwj4g7vfqh2qhymaj3p26f2lvzbmlwq447iid52c";
11
11
+
url = "http://www.avr-asm-tutorial.net/gavrasm/v${flatVersion}/gavrasm_sources_lin_${flatVersion}.zip";
12
12
+
sha256 = "0k94f8k4980wvhx3dpl1savpx4wqv9r5090l0skg2k8vlhsv58gf";
10
13
stripRoot=false;
11
14
};
12
15
13
16
nativeBuildInputs = [ fpc ];
14
17
15
18
configurePhase = ''
19
19
+
runHook preConfigure
16
20
cp gavrlang_${lang}.pas gavrlang.pas
21
21
+
runHook postConfigure
17
22
'';
18
23
19
24
buildPhase = ''
25
25
+
runHook preBuild
20
26
fpc gavrasm.pas
27
27
+
runHook postBuild
21
28
'';
22
29
23
30
installPhase = ''
31
31
+
runHook preInstall
24
32
mkdir -p $out/bin
25
33
cp gavrasm $out/bin
26
34
mkdir -p $out/doc
27
35
cp instr.asm $out/doc
28
36
cp ReadMe.Txt $out/doc
29
37
cp LiesMich.Txt $out/doc
38
38
+
runHook postInstall
30
39
'';
31
40
32
41
meta = with lib; {
33
33
-
homepage = "http://www.avr-asm-tutorial.net/gavrasm";
42
42
+
homepage = "http://www.avr-asm-tutorial.net/gavrasm/";
34
43
description = "AVR Assembler for ATMEL AVR-Processors";
35
44
license = licenses.unfree;
36
45
maintainers = with maintainers; [ mafo ];