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

This commit is contained in:
2026-03-11 10:39:00 -07:00
parent 7c7ca991bd
commit ae05cc6d6e
2 changed files with 107 additions and 0 deletions

35
default.nix Normal file
View File

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