From 6db5b236befd1655bc59f7bea3771f659e1522e4 Mon Sep 17 00:00:00 2001 From: haslersn Date: Thu, 28 May 2020 14:36:31 +0200 Subject: [PATCH] shell.nix: Fix check for ./cbuild and add check for ./cbuild/mixxx --- shell.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 78d5f7f5d2e..29532a09a7b 100644 --- a/shell.nix +++ b/shell.nix @@ -46,7 +46,7 @@ let inherit (nixroot) stdenv pkgs lib ''; shell-build = nixroot.writeShellScriptBin "build" '' - if [ -d "$cbuild" ]; then + if [ ! -d "cbuild" ]; then >&2 echo "First you have to run configure." exit 1 fi @@ -55,11 +55,19 @@ let inherit (nixroot) stdenv pkgs lib ''; shell-run = nixroot.writeShellScriptBin "run" '' + if [ ! -f "cbuild/mixxx" ]; then + >&2 echo "First you have to run build." + exit 1 + fi cd cbuild ./mixxx --resourcePath res/ "$@" ''; shell-debug = nixroot.writeShellScriptBin "debug" '' + if [ ! -f "cbuild/mixxx" ]; then + >&2 echo "First you have to run build." + exit 1 + fi cd cbuild gdb --args ./mixxx --resourcePath res/ "$@" '';