diff options
author | Rebecca Turner <rbt@sent.as> | 2024-03-29 19:48:24 -0700 |
---|---|---|
committer | jade <lix@jade.fyi> | 2024-03-30 03:03:46 +0000 |
commit | 0b4e7389446de61166aeafa6068d9daf60fd4238 (patch) | |
tree | 798994756cc8764a67db824b62665b6df9968bea | |
parent | a5a25894c152848d1a57f97b2ef5542ddf6cdb9d (diff) |
Add a `justfile` to make `meson` friendly :)
Change-Id: Id6e4528392266c6f2444e030b67293abe297ed17
-rw-r--r-- | flake.nix | 4 | ||||
-rw-r--r-- | justfile | 19 |
2 files changed, 22 insertions, 1 deletions
@@ -346,7 +346,9 @@ officialRelease = false; }).overrideAttrs (prev: { # Required for clang-tidy checks - buildInputs = prev.buildInputs ++ lib.optionals (stdenv.cc.isClang) [ pkgs.llvmPackages.llvm pkgs.llvmPackages.clang-unwrapped.dev ]; + buildInputs = prev.buildInputs + ++ [ pkgs.just ] + ++ lib.optionals (stdenv.cc.isClang) [ pkgs.llvmPackages.llvm pkgs.llvmPackages.clang-unwrapped.dev ]; nativeBuildInputs = prev.nativeBuildInputs ++ lib.optional (stdenv.cc.isClang && !stdenv.buildPlatform.isDarwin) pkgs.buildPackages.bear # Required for clang-tidy checks diff --git a/justfile b/justfile new file mode 100644 index 000000000..8c81867f0 --- /dev/null +++ b/justfile @@ -0,0 +1,19 @@ +# https://just.systems/man/en/ + +clean: + rm -rf build + +setup: + meson setup build --prefix="$PWD/outputs/out" + +build: + meson compile -C build + +compile: + just build + +install: + meson install -C build + +test *OPTIONS: + meson test -C build --print-errorlogs --quiet {{ OPTIONS }} |