diff --git a/Justfile b/Justfile index 2c3379a..cee93f1 100644 --- a/Justfile +++ b/Justfile @@ -5,5 +5,11 @@ test: build-appimage: (cd appimage_builder && cargo run --release) +nixos-build-appimage: + (cd appimage_builder && nix-shell libs-env.nix --run 'cargo run --release') + build: - cargo build --release \ No newline at end of file + cargo build --release + +nixos-build: + nix-shell libs-env.nix --run 'cargo build --release' diff --git a/appimage_builder/libs-env.nix b/appimage_builder/libs-env.nix new file mode 100644 index 0000000..3562774 --- /dev/null +++ b/appimage_builder/libs-env.nix @@ -0,0 +1,17 @@ +let + pkgs = import {}; +in + pkgs.mkShell { + buildInputs = with pkgs; [ + clang + libclang + openssl + ffmpeg_7 + mpv-unwrapped + appimagekit + ]; + nativeBuildInputs = with pkgs; [ + pkg-config + rustPlatform.bindgenHook + ]; + } diff --git a/libs-env.nix b/libs-env.nix new file mode 100644 index 0000000..086d780 --- /dev/null +++ b/libs-env.nix @@ -0,0 +1,14 @@ +let + pkgs = import {}; +in + pkgs.mkShell { + buildInputs = with pkgs; [ + clang + libclang + ffmpeg_7 + ]; + nativeBuildInputs = with pkgs; [ + pkg-config + rustPlatform.bindgenHook + ]; + }