Skip to content

Commit

Permalink
[*] support build in nixos
Browse files Browse the repository at this point in the history
  • Loading branch information
heng30 committed Aug 1, 2024
1 parent 209ecc4 commit d457a85
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nixos-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

LOC=$(readlink -f "$0")
DIR=$(dirname "$LOC")

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR/musicbox-bundle/lib
cd $DIR/musicbox-bundle
nix-shell --run './musicbox'

12 changes: 12 additions & 0 deletions run-shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [
gst_all_1.gstreamer.dev
gst_all_1.gst-plugins-base.dev
gst_all_1.gst-plugins-good.dev
gst_all_1.gst-plugins-bad.dev
gst_all_1.gst-plugins-ugly.dev
gst_all_1.gst-libav.dev
gst_all_1.gst-vaapi.dev
];
}

0 comments on commit d457a85

Please sign in to comment.