Add usage/install docs for nix-ecuflash

Remove unused config dir (`.config/ecuflash`)
This commit is contained in:
Joey Hafner 2024-11-01 15:17:59 -07:00
parent a03bde27a7
commit 31ef98b1e8
No known key found for this signature in database
2 changed files with 35 additions and 5 deletions

View File

@ -5,6 +5,39 @@
This project attempts to create a reproducible package for running Tactrix' Windows-only software on Linux.
# Installation
# Usage
`nix-ecuflash` is a wine-wrapped Windows application. You can run it with:
<TODO>
```sh
nix shell "github:Jafner/Jafner.net?dir=projects/nix-ecuflash#ecuflash"
```
# Installation
In 2024, I assume you're using flakes.
Start by adding this flake as an input:
**Flake.nix**
```nix
inputs = {
nix-ecuflash.url = "github:Jafner/Jafner.net?dir=projects/nix-ecuflash";
};
```
And then reference the package in a package list:
**home.nix**
```nix
home.packages = [
inputs.nix-ecuflash.packages."x86_64-linux".ecuflash
];
```
Or
**configuration.nix**
```nix
environment.systemPackages = [
inputs.nix-ecuflash.packages."x86_64-linux".ecuflash
];
```

View File

@ -25,13 +25,10 @@
nativeBuildInputs = [ copyDesktopItems ];
winAppInstall = ''
d="$WINEPREFIX/drive_c/Program Files (x86)/OpenECU/${pname}/"
config_dir="$HOME/.config/ecuflash"
mkdir -p "$d"
cp ${src} "$d/${pname}_${version_raw}.exe"
wine "$WINEPREFIX/drive_c/Program Files (x86)/OpenECU/${pname}/${pname}_${version_raw}.exe"
mkdir -p "$config_dir"
'';
winAppPreRun = ''
'';