Files
pile/default.nix
rm-dr 1812fa50d9
Some checks failed
CI / Typos (push) Successful in 21s
CI / Clippy (push) Failing after 1m13s
CI / Build and test (all features) (push) Failing after 3m27s
CI / Build and test (push) Has been cancelled
Bump versions
2026-03-11 11:05:32 -07:00

37 lines
726 B
Nix

{
pkgs ? import <nixpkgs> { },
rustPlatform ? pkgs.rustPlatform,
}:
rustPlatform.buildRustPackage {
pname = "pile";
version = "0.0.2";
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
];
postInstall = ''
wrapProgram $out/bin/pile \
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath [ pkgs.pdfium-binaries ]}
'';
meta = {
description = "pile - flexible file indexing";
mainProgram = "pile";
};
}