wow
This commit is contained in:
parent
7d47819b9c
commit
ef437d5b15
18 changed files with 222 additions and 86 deletions
29
modules/home/alcom.nix
Normal file
29
modules/home/alcom.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
alcomFhs = pkgs.symlinkJoin {
|
||||
name = "alcom-fhs";
|
||||
|
||||
paths = [
|
||||
pkgs.alcom
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
rm -f "$out/bin/ALCOM"
|
||||
|
||||
cat > "$out/bin/ALCOM" <<'EOF'
|
||||
#!${pkgs.runtimeShell}
|
||||
exec ${pkgs.unityhub.fhsEnv}/bin/unityhub-fhs-env \
|
||||
${pkgs.alcom}/bin/ALCOM "$@"
|
||||
EOF
|
||||
|
||||
chmod +x "$out/bin/ALCOM"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.unityhub
|
||||
alcomFhs
|
||||
];
|
||||
}
|
||||
Loading…
Reference in a new issue