3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #131925 from SuperSandro2000/gawk

gawk: format, cleanup
This commit is contained in:
Ben Siraphob 2021-07-29 16:30:45 +07:00 committed by GitHub
commit d94ad6531f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,9 +15,6 @@
assert (doCheck && stdenv.isLinux) -> glibcLocales != null; assert (doCheck && stdenv.isLinux) -> glibcLocales != null;
let
inherit (lib) optional;
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gawk"; pname = "gawk";
version = "5.1.0"; version = "5.1.0";
@ -28,14 +25,14 @@ stdenv.mkDerivation rec {
}; };
# When we do build separate interactive version, it makes sense to always include man. # When we do build separate interactive version, it makes sense to always include man.
outputs = [ "out" "info" ] ++ optional (!interactive) "man"; outputs = [ "out" "info" ]
++ lib.optional (!interactive) "man";
nativeBuildInputs = optional (doCheck && stdenv.isLinux) glibcLocales; nativeBuildInputs = lib.optional (doCheck && stdenv.isLinux) glibcLocales;
buildInputs = buildInputs = lib.optional withSigsegv libsigsegv
optional withSigsegv libsigsegv ++ lib.optional interactive readline
++ optional interactive readline ++ lib.optional stdenv.isDarwin locale;
++ optional stdenv.isDarwin locale;
configureFlags = [ configureFlags = [
(if withSigsegv then "--with-libsigsegv-prefix=${libsigsegv}" else "--without-libsigsegv") (if withSigsegv then "--with-libsigsegv-prefix=${libsigsegv}" else "--without-libsigsegv")
@ -60,7 +57,6 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://www.gnu.org/software/gawk/"; homepage = "https://www.gnu.org/software/gawk/";
description = "GNU implementation of the Awk programming language"; description = "GNU implementation of the Awk programming language";
longDescription = '' longDescription = ''
Many computer users need to manipulate text files: extract and then Many computer users need to manipulate text files: extract and then
operate on data from parts of certain lines while discarding the rest, operate on data from parts of certain lines while discarding the rest,
@ -74,11 +70,8 @@ stdenv.mkDerivation rec {
makes it possible to handle many data-reformatting jobs with just a few makes it possible to handle many data-reformatting jobs with just a few
lines of code. lines of code.
''; '';
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.unix ++ platforms.windows; platforms = platforms.unix ++ platforms.windows;
maintainers = [ ]; maintainers = [ ];
}; };
} }