Commit Graph

51 Commits

Author SHA1 Message Date
Artturin
63fa53d97c treewide: reformat files which need reformatting after
`treewide: replace stdenv.is with stdenv.hostPlatform.is`
2024-09-25 00:04:39 +03:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
éclairevoyant
96031e8dd4
treewide: fix uses of finalAttrs.pname in urls 2024-07-23 12:48:10 -04:00
linsui
8a2af2b57e pjsip: fix build on python 3.12 2024-07-15 02:24:07 +08:00
linsui
af3f6ca5ff pjsip: format 2024-07-15 01:15:10 +08:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
github-actions[bot]
60fbf92c10
Merge master into staging-next 2024-03-16 18:01:00 +00:00
R. Ryantm
6603460a32 pjsip: 2.14 -> 2.14.1 2024-03-11 13:48:36 +00:00
a-n-n-a-l-e-e
ce789e7e35
llvmPackages_{12,13,14,15,16,17,git}.{libcxx,libcxxabi}: merge libcxxabi into libcxx (#292043)
- merge libcxxabi into libcxx for LLVM 12, 13, 14, 15, 16, 17, and git.
- remove the link time workaround `-lc++ -lc++abi` from 58 packages as it is no longer required.
- fixes https://github.com/NixOS/nixpkgs/issues/166205
- provides alternative fixes for. https://github.com/NixOS/nixpkgs/issues/269548 https://github.com/NixOS/nix/issues/9640
- pkgsCross.x86_64-freebsd builds work again

This change can be represented in 3 stages
1. merge libcxxabi into libcxx -- files: pkgs/development/compilers/llvm/[12, git]/{libcxx, libcxxabi}
2. update stdenv to account for merge -- files: stdenv.{adapters, cc.wrapper, darwin}
3. remove all references to libcxxabi outside of llvm (about 58 packages modified)

### merging libcxxabi into libcxx
- take the union of the libcxxabi and libcxx cmake flags
- eliminate the libcxx-headers-only package - it was only needed to break libcxx <-> libcxxabi circular dependency
- libcxx.cxxabi is removed. external cxxabi (freebsd) will symlink headers / libs into libcxx.
- darwin will re-export the libcxxabi symbols into libcxx so linking `-lc++` is sufficient.
- linux/freebsd `libc++.so` is a linker script `LINK(libc++.so.1, -lc++abi)` making `-lc++` sufficient.
- libcxx/default.nix [12, 17] are identical except for patches and `LIBCXX_ADDITIONAL_LIBRARIES` (only used in 16+)
- git/libcxx/defaul.nix  does not link with -nostdlib when useLLVM is true so flag is removed. this is not much different than before as libcxxabi used -nostdlib where libcxx did not, so libc was linked in anyway.

### stdenv changes
- darwin bootstrap, remove references to libcxxabi and cxxabi
- cc-wrapper: remove c++ link workaround when libcxx.cxxabi doesn't exist (still exists for LLVM pre 12)
- adapter: update overrideLibcxx to account for a pkgs.stdenv that only has libcxx

### 58 package updates
- remove `NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}` as no longer needed
- swift, nodejs_v8 remove libcxxabi references in the clang override

https://github.com/NixOS/nixpkgs/pull/292043
2024-03-11 03:53:37 -07:00
R. Ryantm
d873210f1e pjsip: 2.13.1 -> 2.14 2023-12-03 15:28:38 +00:00
Robert Scott
79567db914 pjsip: fix build on clang/darwin 2023-12-03 15:28:38 +00:00
sternenseemann
af60e68744 testers.hasPkgConfigModules: allow checking multiple pkg-config mods
This is very useful in conjunction with meta.pkgConfigModules, as the
new tester can use the list provided by this meta attribute as a default
value for moduleNames, making its usage in passthru.tests very
convenient.

For backwards compatibility, a shim under the old name is maintained
with a warning.
2023-08-08 19:16:48 +02:00
Thomas Gerbet
3601ccf5ae pjsip: 2.13 -> 2.13.1
Fixes CVE-2023-27585.

Changes:
https://github.com/pjsip/pjproject/releases/tag/2.13.1
2023-07-14 12:00:22 +02:00
Bob van der Linden
072cd2ab7a
pjsip: fix pjsua executable compatiblity with darwin 2023-04-05 11:37:50 +02:00
Bob van der Linden
c32dd072f0
pjsip: add version and pkg-config tests 2023-04-05 11:37:49 +02:00
Bob van der Linden
532911e9ae
pjsip: use finalAttrs in mkDerivation 2023-04-05 11:37:46 +02:00
Bob van der Linden
27e8a2b86c
pjsip: add darwin support (#220884)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-03-19 23:41:47 +01:00
Bob van der Linden
c2a0dc782d
pjsip: enable building shared libraries 2023-02-11 21:42:55 +01:00
Bob van der Linden
cbff2010de
pjsip: add pythonSupport option 2023-02-11 21:42:55 +01:00
Robert Scott
513b812939 pjsip: add patches for CVE-2022-23537 & CVE-2022-23547 2023-01-07 15:30:31 +00:00
Thomas Gerbet
0e2207759f pjsip: 2.12.1 -> 2.13
Fixes CVE-2022-31031.

https://github.com/pjsip/pjproject/releases/tag/2.13
2022-12-09 17:23:57 +01:00
Robert Scott
91a37f5d6d pjsip: add patches for CVE-2022-39269 & CVE-2022-39244 2022-10-26 21:23:32 +01:00
Rick van Schijndel
37c633f7ae treewide: pkgs/applications: mark broken for darwin 2022-05-29 10:56:04 +02:00
Linus Heckemann
7ac64fcbae pjsip: 2.12 -> 2.12.1
Release notes: https://github.com/pjsip/pjproject/releases/tag/2.12.1

Fixes: CVE-2022-24754, CVE-2022-24763, CVE-2022-24764,
       CVE-2022-24786, CVE-2022-24792, CVE-2022-24793
2022-05-16 15:30:36 +02:00
Vladimír Čunát
e766d457c6
Merge #165339: pjsip: add patch for CVE-2022-24764 2022-04-18 08:29:19 +02:00
Malo Bourgon
0e802eafad treewide: add meta.mainProgram to many packages 2022-04-14 10:24:01 -07:00
Robert Scott
e7e3e939a8 pjsip: add patch for CVE-2022-24764 2022-03-22 22:49:31 +00:00
R. Ryantm
5534c689cb pjsip: 2.11.1 -> 2.12 2022-02-25 16:28:48 +00:00
linsui
4b866da20b pjsip: 2.10 -> 2.11.1 2021-10-04 14:12:20 +08:00
AndersonTorres
e9e5f5f84d Change all alsaLib references to alsa-lib 2021-06-10 01:12:49 -03:00
Ben Siraphob
108bdac3d9 pkgs/applications: stdenv.lib -> lib 2021-01-15 14:24:03 +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
Daiderd Jordan
7e23a6021d
pjsip: enable and fix darwin build 2020-04-30 18:06:53 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Vincent Laporte
98eb146164
pjsip: 2.9 → 2.10 2020-03-23 17:16:02 +01:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Daniel Schaefer
53506d9c15 pjsip: Fix compilation on aarch64 2019-07-06 05:01:43 +02:00
Daniel Schaefer
d4c661fb27 pjsip: 2.8 -> 2.9 2019-07-06 05:01:27 +02:00
Daniel Schaefer
bac4d95aa2 treewide: Change URLs to HTTPS
Lots of URLs were HTTP redirect to HTTPS. Changed those and checked them
if there's actual content. Inspired by
https://github.com/NixOS/nixpkgs/issues/60004
2019-04-22 10:19:54 +02:00
R. RyanTM
fa3b0afe07 pjsip: 2.7.2 -> 2.8 (#47735)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/pjsip/versions
2018-10-12 23:09:51 +02:00
Lluís Batlle i Rossell
66d7126255 Take me (viric) out of most maintenance
Since years I'm not maintaining anything of the list below other
than some updates when I needed them for some reason. Other people
is doing that maintenance on my behalf so I better take me out but
for very few packages. Finally!
2018-07-22 21:50:19 +02:00
Ryan Mulligan
1ef6ce59b4 pjsip: 2.7.1 -> 2.7.2
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua -h` got 0 exit code
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua --help` got 0 exit code
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua help` got 0 exit code
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua -V` and found version 2.7.2
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua -v` and found version 2.7.2
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua --version` and found version 2.7.2
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua version` and found version 2.7.2
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua -h` and found version 2.7.2
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua --help` and found version 2.7.2
- ran `/nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2/bin/pjsua help` and found version 2.7.2
- found 2.7.2 with grep in /nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2
- found 2.7.2 in filename of file in /nix/store/3wqj8kyahgi1r25wp8vfhhsg0m1mzpkx-pjsip-2.7.2

cc "@viric @olynch"
2018-02-28 14:24:00 +00:00
Owen Lynch
d13d8006ab pjsip: 2.6 -> 2.7.1 2017-12-29 03:40:57 +01:00
Taeer Bar-Yam
56923a410e pjsip: 2.5.5 -> 2.6 2017-07-09 13:32:52 -04:00
Adolfo E. García Castro
64667ae3ef pjsip: 2.1 -> 2.5.5 2016-08-29 10:22:34 -06:00
Mateusz Kowalczyk
7a45996233 Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
Lluís Batlle i Rossell
a6c1edf947 Updating pjsip to 2.1 2013-06-29 15:14:02 +02:00
Eelco Dolstra
c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00
Lluís Batlle i Rossell
954561a02d pjsua needs the libgcc
svn path=/nixpkgs/trunk/; revision=25633
2011-01-19 21:16:40 +00:00
Lluís Batlle i Rossell
40012b3588 Making pjsip install the console User Agent (pjsua), that helps a lot testing SIP.
svn path=/nixpkgs/trunk/; revision=25587
2011-01-16 14:58:37 +00:00