mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-21 03:36:08 +01:00
hostconfig/thinkpad-nixos: Add a meson compile script
This commit is contained in:
parent
bc1faf5662
commit
fc72c9d532
1 changed files with 19 additions and 0 deletions
|
|
@ -41,6 +41,25 @@
|
|||
ssh nwadmin "/usr/sbin/sendmail -r ${config.workAddr} $*"
|
||||
exit $?
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "mgit" ''
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ -z $BUILD_DIR ]]; then
|
||||
BUILD_DIR=build
|
||||
fi
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)" || {
|
||||
echo "can't cd to toplevel"
|
||||
exit 255
|
||||
}
|
||||
|
||||
if [[ ! -d $BUILD_DIR ]]; then
|
||||
echo "build directory '$BUILD_DIR' not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
meson compile -C "$BUILD_DIR" "$@"
|
||||
'')
|
||||
pkgs.python3.pkgs.tappy
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue