Compare commits

..

2 Commits

Author SHA1 Message Date
a5837a7d35 More string extractors
Some checks failed
CI / Typos (push) Failing after 22s
CI / Clippy (push) Failing after 1m13s
CI / Build and test (push) Has been cancelled
CI / Build and test (all features) (push) Has started running
2026-03-11 10:57:36 -07:00
ae05cc6d6e Add nix files
Some checks failed
CI / Build and test (all features) (push) Waiting to run
CI / Typos (push) Failing after 16s
CI / Clippy (push) Failing after 3m36s
CI / Build and test (push) Failing after 6m37s
2026-03-11 10:43:52 -07:00
2 changed files with 35 additions and 4 deletions

View File

@@ -1,9 +1,8 @@
{
pkgs ? import <nixpkgs> { },
rustPlatform ? pkgs.rustPlatform,
}:
rustPlatform.buildRustPackage {
pkgs.rustPlatform.buildRustPackage {
pname = "pile";
version = "0.0.1";
src = ./.;

View File

@@ -16,7 +16,7 @@
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
rustToolchain = pkgs.rust-bin.stable."1.94.0".default;
rustToolchain = pkgs.rust-bin.stable."1.85.0".default;
rustPlatform = pkgs.makeRustPlatform {
cargo = rustToolchain;
@@ -24,7 +24,39 @@
};
in {
packages.default = import ./default.nix { inherit pkgs rustPlatform; };
packages.default = rustPlatform.buildRustPackage {
pname = "pile";
version = "0.0.1";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
buildInputs = [
pkgs.pdfium-binaries
pkgs.openssl
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
];
nativeBuildInputs = [
pkgs.pkg-config
pkgs.makeWrapper
];
# pdfium-render loads libpdfium dynamically at runtime
postInstall = ''
wrapProgram $out/bin/pile \
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath [ pkgs.pdfium-binaries ]}
'';
meta = {
description = "pile - personal data indexer and search tool";
homepage = "https://github.com/markus/pile";
license = pkgs.lib.licenses.mit;
mainProgram = "pile";
};
};
devShells.default = pkgs.mkShell {
buildInputs = [