7 stdenv.mkDerivation rec {
12 url = "mirror://gnu/which/which-${version}.tar.gz";
13 hash = "sha256-9KJFuUEks3fYtJZGv0IfkVXTaqdhS26/g3BdP/x26q0=";
17 enableParallelBuilding = true;
19 env.NIX_CFLAGS_COMPILE = toString (
20 # Enable 64-bit file API. Otherwise `which` fails to find tools
21 # on filesystems with 64-bit inodes (like `btrfs`) when running
22 # binaries from 32-bit systems (like `i686-linux`).
23 lib.optional stdenv.hostPlatform.is32bit "-D_FILE_OFFSET_BITS=64"
27 homepage = "https://www.gnu.org/software/which/";
28 description = "Shows the full path of (shell) commands";
29 license = lib.licenses.gpl3Plus;
30 mainProgram = "which";
31 platforms = lib.platforms.all;