From b5bf1e81660bf7329fcc524f76a47c90a98b0566 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sat, 2 Nov 2024 18:10:00 -0700 Subject: [PATCH] New approach for nix-ecu-tuning: Start by setting up RomRaider. --- .../99-j2534.rules | 0 .../{nix-ecutuner => nix-ecu-tuning}/README.md | 0 .../{nix-ecutuner => nix-ecu-tuning}/flake.lock | 0 .../{nix-ecutuner => nix-ecu-tuning}/flake.nix | 8 ++++++-- .../{nix-ecutuner => nix-ecu-tuning}/j2534.nix | 0 projects/nix-ecu-tuning/romraider.nix | 14 ++++++++++++++ 6 files changed, 20 insertions(+), 2 deletions(-) rename projects/{nix-ecutuner => nix-ecu-tuning}/99-j2534.rules (100%) rename projects/{nix-ecutuner => nix-ecu-tuning}/README.md (100%) rename projects/{nix-ecutuner => nix-ecu-tuning}/flake.lock (100%) rename projects/{nix-ecutuner => nix-ecu-tuning}/flake.nix (73%) rename projects/{nix-ecutuner => nix-ecu-tuning}/j2534.nix (100%) create mode 100644 projects/nix-ecu-tuning/romraider.nix diff --git a/projects/nix-ecutuner/99-j2534.rules b/projects/nix-ecu-tuning/99-j2534.rules similarity index 100% rename from projects/nix-ecutuner/99-j2534.rules rename to projects/nix-ecu-tuning/99-j2534.rules diff --git a/projects/nix-ecutuner/README.md b/projects/nix-ecu-tuning/README.md similarity index 100% rename from projects/nix-ecutuner/README.md rename to projects/nix-ecu-tuning/README.md diff --git a/projects/nix-ecutuner/flake.lock b/projects/nix-ecu-tuning/flake.lock similarity index 100% rename from projects/nix-ecutuner/flake.lock rename to projects/nix-ecu-tuning/flake.lock diff --git a/projects/nix-ecutuner/flake.nix b/projects/nix-ecu-tuning/flake.nix similarity index 73% rename from projects/nix-ecutuner/flake.nix rename to projects/nix-ecu-tuning/flake.nix index 63e9c24e..5bfe7470 100644 --- a/projects/nix-ecutuner/flake.nix +++ b/projects/nix-ecu-tuning/flake.nix @@ -16,11 +16,15 @@ inherit fetchFromGitHub; inherit stdenv; }; + romraider = callPackage ./romraider.nix { + inherit fetchFromGitHub; + inherit stdenv; + }; }; - apps.x86_64-linux.ecuflash = { + apps.x86_64-linux.romraider = { type = "app"; - program = "${self.packages.x86_64-linux.ecuflash}/bin/ecuflash"; + program = "${self.packages.x86_64-linux.romraider}/bin/romraider"; }; apps.x86_64-linux.default = self.apps.x86_64-linux.ecuflash; diff --git a/projects/nix-ecutuner/j2534.nix b/projects/nix-ecu-tuning/j2534.nix similarity index 100% rename from projects/nix-ecutuner/j2534.nix rename to projects/nix-ecu-tuning/j2534.nix diff --git a/projects/nix-ecu-tuning/romraider.nix b/projects/nix-ecu-tuning/romraider.nix new file mode 100644 index 00000000..7be2d4ce --- /dev/null +++ b/projects/nix-ecu-tuning/romraider.nix @@ -0,0 +1,14 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation rec { + pname = "romraider"; + version = "1.0.0"; + src = fetchFromGitHub { + owner = "RomRaider"; + repo = "RomRaider"; + rev = "bd77db3f1b32b359a6aaebb789001e71c43e9e02"; + sha256 = "sha256-ZN1L1pZJ2tvmxf5Imd5tAZWI2044bY8X6WoK2fBa2Yw="; + }; + buildInputs = [ ]; + buildPhase = ''''; + installPhase = ''''; +} \ No newline at end of file