summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2022-12-19 17:55:46 +0200
committerGitHub <noreply@github.com>2022-12-19 17:55:46 +0200
commit1c387ed1a698417c3ccfe933f1c742279361ae17 (patch)
treee52d5e1ea65ee853a34e93bf526903225a53ff20 /nixos/modules/misc
parente88b7bf95a45a5f69d24a4a0e6daedadd760a1a7 (diff)
parenta6fa6abb15c2f55f0daf08ac2030cdc15bbc348d (diff)
downloadnixpkgs-1c387ed1a698417c3ccfe933f1c742279361ae17.tar
nixpkgs-1c387ed1a698417c3ccfe933f1c742279361ae17.tar.gz
nixpkgs-1c387ed1a698417c3ccfe933f1c742279361ae17.tar.bz2
nixpkgs-1c387ed1a698417c3ccfe933f1c742279361ae17.tar.lz
nixpkgs-1c387ed1a698417c3ccfe933f1c742279361ae17.tar.xz
nixpkgs-1c387ed1a698417c3ccfe933f1c742279361ae17.tar.zst
nixpkgs-1c387ed1a698417c3ccfe933f1c742279361ae17.zip
Merge pull request #206709 from SuperSandro2000/mandb-misc
nixos/man-db: use nativeBuildInputs
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r--nixos/modules/misc/man-db.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/nixos/modules/misc/man-db.nix b/nixos/modules/misc/man-db.nix
index df903259fa4..299b11d1fce 100644
--- a/nixos/modules/misc/man-db.nix
+++ b/nixos/modules/misc/man-db.nix
@@ -52,13 +52,11 @@ in
     environment.systemPackages = [ cfg.package ];
     environment.etc."man_db.conf".text =
       let
-        mandbForBuild = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then
-                          cfg.package
-                        else
-                          pkgs.buildPackages.man-db;
-        manualCache = pkgs.runCommand "man-cache" { } ''
+        manualCache = pkgs.runCommand "man-cache" {
+          nativeBuildInputs = [ cfg.package ];
+        } ''
           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
       ''