Commit graph

11 commits

Author SHA1 Message Date
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
2023-02-22 21:23:04 +02:00
Sergei Trofimovich
568e4f57ce
Update pkgs/tools/networking/nfstrace/default.nix
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-30 19:31:55 +00:00
Sergei Trofimovich
7331816f56 nfstrace: pull pending upstream inclusion fix for ncurses-6.3
Without the fix build on ncurses-6.3 fails as:

    nfstrace/analyzers/src/watch/nc_windows/header_window.cpp:77:82:
      error: format '%d' expects argument of type 'int', but argument 5 has type 'time_t' {aka 'long int'} [-Werror=format=]
       77 |     mvwprintw(_window, HEADER::ELAPSED_LINE, FIRST_CHAR_POS, "Elapsed time:  \t %d days; %d:%d:%d times",
          |                                                                                 ~^
          |                                                                                  int
          |                                                                                 %ld

While at it wropped blnket -Werror that fails on gcc-12 and clang-12.
2021-11-18 08:20:05 +00:00
sophrosyne97
2412b97e18 nfstrace: fix build error 2021-05-16 14:35:22 -07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Pavol Rusnak
2c931312ce treewide: simplify rev/repo arguments in src
+ use fetchFromGithub where possible
2020-11-01 23:02:24 -08:00
Maximilian Bosch
59637a4474
nfstrace: fix build w/glibc-2.32 2020-09-12 23:04:46 +02:00
Maximilian Bosch
1bb691ff9f
nfstrace: fix build
https://hydra.nixos.org/build/109722476
2020-01-06 18:16:14 +01:00
Maximilian Bosch
b92fc0fba4
nfstrace: fix for structured attrs 2019-12-31 01:28:05 +01:00
Azulinho
7c723450a1
nfstrace: init at 0.4.3.2
Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
Co-authored-by: Nick Partridge <nkpart@gmail.com>
2019-11-05 09:19:34 +00:00