Skip to content

Commit

Permalink
Add recipes to build with/without appimage on NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
shellixyz committed Oct 5, 2024
1 parent 4a5d974 commit c1d418b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
cargo build --release

nixos-build:
nix-shell libs-env.nix --run 'cargo build --release'
17 changes: 17 additions & 0 deletions appimage_builder/libs-env.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
let
pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
buildInputs = with pkgs; [
clang
libclang
openssl
ffmpeg_7
mpv-unwrapped
appimagekit
];
nativeBuildInputs = with pkgs; [
pkg-config
rustPlatform.bindgenHook
];
}
14 changes: 14 additions & 0 deletions libs-env.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
let
pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
buildInputs = with pkgs; [
clang
libclang
ffmpeg_7
];
nativeBuildInputs = with pkgs; [
pkg-config
rustPlatform.bindgenHook
];
}

0 comments on commit c1d418b

Please sign in to comment.