Continue moving out of the overlay model for everything and into running sutff directly out of the packages. This should give a cleaner separation of the things that I don't need to maintain separately
15 lines
426 B
Nix
15 lines
426 B
Nix
{ writeShellApplication, unzip, ... }:
|
|
|
|
writeShellApplication {
|
|
name = "aacs";
|
|
runtimeInputs = [ unzip ];
|
|
text = ''
|
|
[ ! -d "''${HOME}/.config/aacs" ] && mkdir -p "''${HOME}/.config/aacs"
|
|
cd "''${HOME}/.config/aacs"
|
|
[ -f KEYDB.cfg.zip ] && rm -f KEYDB.cfg.zip
|
|
curl -L -o KEYDB.cfg.zip "http://fvonline-db.bplaced.net/fv_download.php?lang=eng"
|
|
unzip KEYDB.cfg.zip
|
|
mv keydb.cfg KEYDB.config
|
|
'';
|
|
}
|