From 2027da40ad163921c3df83b02879710639823c4f Mon Sep 17 00:00:00 2001 From: dusk Date: Sun, 5 Jan 2025 01:52:19 +0900 Subject: [PATCH] build(nix): actually make sure libcommands.so is outputted to correct dir (obj) --- flake.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index e99d2e03..2a44085a 100644 --- a/flake.nix +++ b/flake.nix @@ -90,11 +90,12 @@ set -x commandslib="''${1:-}" if [ "$commandslib" == "" ]; then - cargo build --package commands --release - commandslib="target/release/libcommands.so" + cargo -Z unstable-options build --package commands --release --artifact-dir obj/ + commandslib="obj/libcommands.so" + else + cp -f "$commandslib" obj/ fi uniffi-bindgen-cs "$commandslib" --library --out-dir="''${2:-./PluralKit.Bot}" - cp -f "$commandslib" obj/ ''; }; }; @@ -204,7 +205,7 @@ set -x ${pluralkitConfCheck} ${self'.apps.generate-command-parser-bindings.program} - dotnet build -c Release -o obj/ + dotnet build ./PluralKit.Bot/PluralKit.Bot.csproj -c Release -o obj/ exec dotnet obj/PluralKit.Bot.dll ''; };