From 53d84ca65dca0e54322e9e8fabe2779f6b51a5f2 Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Wed, 21 Aug 2024 11:56:32 -0500 Subject: [PATCH] Remove many more fortune files from fortune-kind --- custom/fortune-kind-custom.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/custom/fortune-kind-custom.nix b/custom/fortune-kind-custom.nix index 2535fd1..98e1307 100644 --- a/custom/fortune-kind-custom.nix +++ b/custom/fortune-kind-custom.nix @@ -18,8 +18,30 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ makeBinaryWrapper installShellFiles pkgs.gzip ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ]; + toRemove = [ + "ascii-art" + "disclaimer" + "food" + "fortunes" + "goedel" + "humorists" + "kids" + "linux" + "magic" + "medicine" + "nethack" + "news" + "paradoxum" + "people" + "pets" + "riddles" + "tao" + "testtunes" + "translate-me" + ]; + prePatch = '' - rm ./fortunes/{translate-me,news,humorists} + rm ./fortunes/{${builtins.concatStringsSep "," toRemove}} cp -r ${./fortunes}/* ./fortunes/ '';