{ lib, rustPlatform, }: let fs = lib.fileset; lockfile = ../Cargo.lock; cargoToml = ../Cargo.toml; in rustPlatform.buildRustPackage { pname = "eris"; version = "0.0.1"; src = let s = ../.; in fs.toSource { root = s; fileset = fs.unions [ (fs.fileFilter (file: builtins.any file.hasExt ["rs"]) s + /src) lockfile cargoToml ]; }; postInstall = '' mkdir -p $out/share install -Dm755 ${../contrib} $out/share/contrib ''; cargoLock.lockFile = lockfile; meta = { description = "Sophisticated HTTP tarpit and honeypot stream"; mainProgram = "eris"; }; }