Compare commits

..

2 Commits

Author SHA1 Message Date
d1c3045919 More string extractors
Some checks failed
CI / Typos (push) Failing after 24s
CI / Build and test (push) Failing after 2m17s
CI / Clippy (push) Failing after 3m23s
CI / Build and test (all features) (push) Has been cancelled
2026-03-11 10:59:42 -07:00
ce857dd755 Add nix files 2026-03-11 10:59:40 -07:00
2 changed files with 4 additions and 35 deletions

View File

@@ -1,8 +1,9 @@
{
pkgs ? import <nixpkgs> { },
rustPlatform ? pkgs.rustPlatform,
}:
pkgs.rustPlatform.buildRustPackage {
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.85.0".default;
rustToolchain = pkgs.rust-bin.stable."1.94.0".default;
rustPlatform = pkgs.makeRustPlatform {
cargo = rustToolchain;
@@ -24,39 +24,7 @@
};
in {
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";
};
};
packages.default = import ./default.nix { inherit pkgs rustPlatform; };
devShells.default = pkgs.mkShell {
buildInputs = [