@@ -2,20 +2,24 @@
22, lib
33, fetchFromGitHub
44, cc65
5+, python3
56}:
67
78stdenv.mkDerivation rec {
89 pname = "x16-rom";
9− version = "38";
10+ version = "40";
1011
1112 src = fetchFromGitHub {
1213 owner = "commanderx16";
1314 repo = pname;
1415 rev = "r${version}";
15− sha256 = "xaqF0ppB7I7ST8Uh3jPbC14uRAb/WH21tHlNeTvYpoI=";
16+ hash = "sha256-5oqttuTJiJOUENncOJipAar22OsI1uG3G69m+eYoSh0=";
1617 };
1718
18− nativeBuildInputs = [ cc65 ];
19+ nativeBuildInputs = [
20+ cc65
21+ python3
22+ ];
1923
2024 postPatch = ''
2125 patchShebangs scripts/
@@ -25,8 +29,10 @@ stdenv.mkDerivation rec {
2529
2630 installPhase = ''
2731 runHook preInstall
28− install -D --mode 444 --target-directory $out/share/${pname} build/x16/rom.bin
29− install -D --mode 444 --target-directory $out/share/doc/${pname} README.md
32+
33+ install -Dm 444 -t $out/share/${pname} build/x16/rom.bin
34+ install -Dm 444 -t $out/share/doc/${pname} README.md
35+
3036 runHook postInstall
3137 '';
3238
@@ -35,7 +41,7 @@ stdenv.mkDerivation rec {
3541 description = "ROM file for CommanderX16 8-bit computer";
3642 license = licenses.bsd2;
3743 maintainers = with maintainers; [ AndersonTorres ];
38− platforms = cc65.meta.platforms;
44+ inherit (cc65.meta) platforms;
3945 };
4046
4147 passthru = {