Clean up flake, remove pdfium dependency

This commit is contained in:
2023-11-22 13:35:01 +01:00
parent c6d8eb4a59
commit 1db3c212ba
4 changed files with 24 additions and 844 deletions

View File

@ -10,34 +10,20 @@
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
nativeBuildInputs = with pkgs; [
gtk4
cairo
glib
pkg-config
poppler
wrapGAppsHook
];
in {
defaultPackage = naersk-lib.buildPackage {
src = ./.;
inherit nativeBuildInputs;
};
devShell = with pkgs;
mkShell {
inherit nativeBuildInputs;
buildInputs = [
cargo
rustc
rustfmt
rust-analyzer
pre-commit
rustPackages.clippy
cargo-outdated
cargo-audit
in
{
defaultPackage = naersk-lib.buildPackage
{
src = ./.;
nativeBuildInputs = with pkgs; [
gtk4
cairo
glib
pkg-config
poppler
wrapGAppsHook
];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
});
}