File tree Expand file tree Collapse file tree 3 files changed +15
-18
lines changed Expand file tree Collapse file tree 3 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 66 SDL2 ,
77 callPackage ,
88 zlib ,
9+ nix-update-script ,
910} :
1011
1112stdenv . mkDerivation ( finalAttrs : {
@@ -15,7 +16,7 @@ stdenv.mkDerivation (finalAttrs: {
1516 src = fetchFromGitHub {
1617 owner = "X16Community" ;
1718 repo = "x16-emulator" ;
18- rev = "r${ finalAttrs . version } " ;
19+ tag = "r${ finalAttrs . version } " ;
1920 hash = "sha256-E4TosRoORCWLotOIXROP9oqwqo1IRSa6X13GnmuxE9A=" ;
2021 } ;
2122
@@ -58,14 +59,16 @@ stdenv.mkDerivation (finalAttrs: {
5859 run = ( callPackage ./run.nix { } ) {
5960 inherit ( finalAttrs . finalPackage ) emulator rom ;
6061 } ;
62+
63+ updateScript = nix-update-script { } ;
6164 } ;
6265
6366 meta = {
6467 homepage = "https://cx16forum.com/" ;
6568 description = "Official emulator of CommanderX16 8-bit computer" ;
66- changelog = "https://github.com/X16Community/x16-emulator/blob/r ${ finalAttrs . version } /RELEASES.md" ;
69+ changelog = "https://github.com/X16Community/x16-emulator/blob/${ finalAttrs . src . rev } /RELEASES.md" ;
6770 license = lib . licenses . bsd2 ;
68- maintainers = with lib . maintainers ; [ ] ;
71+ maintainers = with lib . maintainers ; [ pluiedev ] ;
6972 mainProgram = "x16emu" ;
7073 inherit ( SDL2 . meta ) platforms ;
7174 broken = stdenv . hostPlatform . isAarch64 ; # ofborg fails to compile it
Original file line number Diff line number Diff line change 55 cc65 ,
66 lzsa ,
77 python3 ,
8+ nix-update-script ,
89} :
910
1011stdenv . mkDerivation ( finalAttrs : {
@@ -27,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
2728 postPatch = ''
2829 patchShebangs findsymbols scripts/
2930 substituteInPlace Makefile \
30- --replace-fail '/bin/echo' 'echo'
31+ --replace-fail '/bin/echo' 'echo'
3132 '' ;
3233
3334 dontConfigure = true ;
@@ -47,13 +48,14 @@ stdenv.mkDerivation (finalAttrs: {
4748 # upstream project recommends emulator and rom to be synchronized; passing
4849 # through the version is useful to ensure this
4950 inherit ( finalAttrs ) version ;
51+ updateScript = nix-update-script { } ;
5052 } ;
5153
5254 meta = {
5355 homepage = "https://github.com/X16Community/x16-rom" ;
5456 description = "ROM file for CommanderX16 8-bit computer" ;
5557 license = lib . licenses . bsd2 ;
56- maintainers = with lib . maintainers ; [ ] ;
58+ maintainers = with lib . maintainers ; [ pluiedev ] ;
5759 inherit ( cc65 . meta ) platforms ;
5860 broken = stdenv . hostPlatform . isDarwin && stdenv . hostPlatform . isAarch64 ;
5961 } ;
Original file line number Diff line number Diff line change 11{
22 runtimeShell ,
33 symlinkJoin ,
4- writeTextFile ,
4+ writeShellScriptBin ,
55} :
66
77{ emulator , rom } :
88
99assert emulator . version == rom . version ;
1010
1111let
12- runScript = writeTextFile {
13- name = "run-x16" ;
14- text = ''
15- #!${ runtimeShell }
16-
17- defaultRom="${ rom } /share/x16-rom/rom.bin"
18-
19- exec "${ emulator } /bin/x16emu" -rom $defaultRom "$@"
20- '' ;
21- executable = true ;
22- destination = "/bin/run-x16" ;
23- } ;
12+ runScript = writeShellScriptBin "run-x16" ''
13+ defaultRom="${ rom } /share/x16-rom/rom.bin"
14+ exec "${ emulator } /bin/x16emu" -rom $defaultRom "$@"
15+ '' ;
2416in
2517symlinkJoin {
2618 pname = "run-x16" ;
You can’t perform that action at this time.
0 commit comments