mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Added shell.nix and updated Building.md (#14019)
This commit is contained in:
@@ -133,6 +133,15 @@ brew install ccache gettext luacheck p7zip
|
|||||||
export MACOSX_DEPLOYMENT_TARGET=10.09
|
export MACOSX_DEPLOYMENT_TARGET=10.09
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Nix
|
||||||
|
|
||||||
|
Ensure the [nix is installed](https://nixos.org/download/).
|
||||||
|
|
||||||
|
Then simply run the included nix shell:
|
||||||
|
```
|
||||||
|
nix-shell tools/shell.nix
|
||||||
|
```
|
||||||
|
|
||||||
## Getting the source
|
## Getting the source
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
35
tools/shell.nix
Normal file
35
tools/shell.nix
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
let
|
||||||
|
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-25.05";
|
||||||
|
pkgs = import nixpkgs { config = {}; overlays = []; };
|
||||||
|
in
|
||||||
|
|
||||||
|
pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
autoconf
|
||||||
|
automake
|
||||||
|
libtool
|
||||||
|
cmake
|
||||||
|
gcc
|
||||||
|
git
|
||||||
|
gnumake
|
||||||
|
meson
|
||||||
|
nasm
|
||||||
|
ninja
|
||||||
|
gnupatch
|
||||||
|
perl
|
||||||
|
pkg-config
|
||||||
|
unzip
|
||||||
|
wget
|
||||||
|
|
||||||
|
SDL2
|
||||||
|
|
||||||
|
p7zip
|
||||||
|
ccache
|
||||||
|
gettext
|
||||||
|
luajitPackages.luacheck
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
export LD_LIBRARY_PATH=${pkgs.SDL2}/lib:$LD_LIBRARY_PATH
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user