Unverified Commit 586ab0a9 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #262849 from eclairevoyant/which

which: set meta.mainProgram and other cleanup
parents 2f8121b0 efa1fb94
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ stdenv.mkDerivation rec {

  src = fetchurl {
    url = "mirror://gnu/which/which-${version}.tar.gz";
    sha256 = "1bgafvy3ypbhhfznwjv1lxmd6mci3x1byilnnkc7gcr486wlb8pl";
    hash = "sha256-9KJFuUEks3fYtJZGv0IfkVXTaqdhS26/g3BdP/x26q0=";
  };

  strictDeps = true;
@@ -19,10 +19,11 @@ stdenv.mkDerivation rec {
    lib.optional stdenv.hostPlatform.is32bit "-D_FILE_OFFSET_BITS=64"
  );

  meta = with lib; {
  meta = {
    homepage = "https://www.gnu.org/software/which/";
    description = "Shows the full path of (shell) commands";
    platforms = platforms.all;
    license = licenses.gpl3;
    license = lib.licenses.gpl3Plus;
    mainProgram = "which";
    platforms = lib.platforms.all;
  };
}