nixpkgs/pkgs/tools/system/which/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
808 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2015-03-26 05:42:36 +00:00
stdenv.mkDerivation rec {
2021-07-27 14:46:40 +00:00
pname = "which";
version = "2.21";
src = fetchurl {
2021-07-27 14:46:40 +00:00
url = "mirror://gnu/which/which-${version}.tar.gz";
2015-03-26 05:42:36 +00:00
sha256 = "1bgafvy3ypbhhfznwjv1lxmd6mci3x1byilnnkc7gcr486wlb8pl";
};
strictDeps = true;
enableParallelBuilding = true;
env.NIX_CFLAGS_COMPILE = toString (
# Enable 64-bit file API. Otherwise `which` fails to find tools
# on filesystems with 64-bit inodes (like `btrfs`) when running
# binaries from 32-bit systems (like `i686-linux`).
lib.optional stdenv.hostPlatform.is32bit "-D_FILE_OFFSET_BITS=64"
);
meta = with lib; {
homepage = "https://www.gnu.org/software/which/";
description = "Shows the full path of (shell) commands";
2015-03-26 05:42:36 +00:00
platforms = platforms.all;
license = licenses.gpl3;
};
}