nix: include contrib dir in packaging
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ie19e1d0f147dd98d15f71adc16ca691f6a6a6964
This commit is contained in:
parent
83ae044fd3
commit
6ebe027401
1 changed files with 14 additions and 7 deletions
|
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
lib,
|
||||
craneLib,
|
||||
pkg-config,
|
||||
openssl,
|
||||
}: let
|
||||
pname = "eris";
|
||||
inherit ((lib.importTOML ../Cargo.toml).package) version;
|
||||
|
|
@ -18,9 +20,12 @@
|
|||
};
|
||||
|
||||
cargoArtifacts = craneLib.buildDepsOnly {
|
||||
name = "${pname}-deps";
|
||||
strictDeps = true;
|
||||
name = "eris";
|
||||
inherit src;
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [pkg-config];
|
||||
buildInputs = [openssl];
|
||||
};
|
||||
in
|
||||
craneLib.buildPackage {
|
||||
|
|
@ -28,11 +33,13 @@ in
|
|||
|
||||
strictDeps = true;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/contrib
|
||||
cp -rv $src/contrib/corpus $out/share/contrib
|
||||
cp -rv $src/contrib/lua $out/share/contrib
|
||||
'';
|
||||
# FIXME: better provide those via wrappers...
|
||||
# postFixup = ''
|
||||
# mkdir -p "$out"/share/contrib/{corpus,lua}
|
||||
#
|
||||
# install -Dm755 ${../contrib/corpus}/*.txt $out/share/contrib/corpus
|
||||
# install -Dm755 ${../contrib/lua}/*.lua $out/share/contrib/lua
|
||||
# '';
|
||||
|
||||
meta = {
|
||||
description = "Sophisticated HTTP tarpit and honeypot stream";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue