Improve nix build
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
||||
/.direnv
|
||||
*.mgc
|
||||
*.typ
|
||||
/result
|
||||
|
||||
10
flake.nix
10
flake.nix
@@ -18,9 +18,10 @@
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
cargoHash = lib.fakeHash;
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
buildInputs = [pkgs.zathuraPkgs.zathura_core pkgs.girara pkgs.cairo pkgs.pkg-config];
|
||||
buildInputs = [pkgs.zathuraPkgs.zathura_core pkgs.girara pkgs.cairo pkgs.openssl];
|
||||
nativeBuildInputs = [pkgs.perl pkgs.pkg-config];
|
||||
|
||||
# From https://hoverbear.org/blog/rust-bindgen-in-nix/
|
||||
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
|
||||
@@ -39,6 +40,11 @@
|
||||
$(pkg-config --cflags zathura)
|
||||
"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/zathura
|
||||
mv target/*/release/*.so $out/lib/zathura/
|
||||
'';
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user