Add usage/install docs for nix-ecuflash
Remove unused config dir (`.config/ecuflash`)
This commit is contained in:
parent
a03bde27a7
commit
31ef98b1e8
@ -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
|
||||
];
|
||||
```
|
@ -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 = ''
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user