nixos/man-db: use nativeBuildInputs
This commit is contained in:
parent
76672661b9
commit
a6fa6abb15
1 changed files with 4 additions and 6 deletions
|
@ -52,13 +52,11 @@ in
|
||||||
environment.systemPackages = [ cfg.package ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
environment.etc."man_db.conf".text =
|
environment.etc."man_db.conf".text =
|
||||||
let
|
let
|
||||||
mandbForBuild = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then
|
manualCache = pkgs.runCommand "man-cache" {
|
||||||
cfg.package
|
nativeBuildInputs = [ cfg.package ];
|
||||||
else
|
} ''
|
||||||
pkgs.buildPackages.man-db;
|
|
||||||
manualCache = pkgs.runCommand "man-cache" { } ''
|
|
||||||
echo "MANDB_MAP ${cfg.manualPages}/share/man $out" > man.conf
|
echo "MANDB_MAP ${cfg.manualPages}/share/man $out" > man.conf
|
||||||
${mandbForBuild}/bin/mandb -C man.conf -psc >/dev/null 2>&1
|
mandb -C man.conf -psc >/dev/null 2>&1
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue