https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
14 lines
264 B
Nix
14 lines
264 B
Nix
{ stdenv, collectd }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "collectd-data";
|
|
inherit (collectd) meta src version;
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
dontFixup = true;
|
|
|
|
installPhase = ''
|
|
install -Dm444 -t $out/share/collectd/ src/*.{db,conf}
|
|
'';
|
|
}
|