Commit Graph

74 Commits

Author SHA1 Message Date
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08: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
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +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
Alyssa Ross
df26977114 pkgsStatic.sox: fix 2024-05-13 09:05:55 +00:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Sean Link
62b27fc560
soxr: add mingw support (#287284)
Part of a larger effort to get mingw support for qtmultimedia

Co-authored-by: Sean Link <sean.link@lightdeckdx.com>
2024-02-08 20:43:57 +01:00
Alyssa Ross
02217618d3 sox: enable parallel building
Tested at -j64.
2023-12-28 15:03:33 +01:00
Alyssa Ross
fd41fdd34a sox: fix build with enableOpusfile = false
pkg-config seems to now always be required.
2023-12-26 17:19:32 +01:00
Doron Behar
908a6c4ad9 sox: use fetchgit instead of sourceforge unreliable snapshot url
See also discussion at: https://github.com/NixOS/nixpkgs/pull/240866
2023-07-02 16:31:42 +03:00
Sergei Trofimovich
a7853ab93a soxr: extract dev output 2023-05-17 22:03:48 +01:00
Ferry Jérémie
bfac2d0034 treewide:replace http by https when https is a permanent redirection 2023-02-19 21:47:59 +01:00
Ferry Jérémie
65d7e87fdb treewide: replace http by https when https is a permanent redirection 2023-01-22 02:46:49 +01:00
Martin Weinelt
73acdd0f22
sox: create dev, lib and man outputs 2022-12-15 01:37:19 +01:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
Josef Kemetmüller
bcd7045998 treewide: Remove now-unneeded LD_LIBRARY_PATH in cmake derivations
Since the setting DCMAKE_SKIP_BUILD_RPATH was disabled, we can now run
the checkPhase of cmake derivations without having to tweak the
LD_LIBRARY_PATH anymore.
2022-07-04 03:49:01 +03:00
Armeen Mahdian
49efe74808 snack: remove 2022-04-21 13:46:06 -05:00
Fabian Affolter
1c6c209867 sox: update hash 2022-03-11 13:16:02 +01:00
Robert Scott
07c201917c sox: 14.4.2 -> unstable-2021-05-09 2022-01-25 21:46:26 +00:00
github-actions[bot]
d5964b8c81
Merge staging-next into staging 2021-11-10 00:02:09 +00:00
Sandro Jäckel
d81070c891
sox: remove ? null from inputs, cleanup meta, enable pulseaudio only on linux 2021-11-09 10:14:18 +01:00
Sandro
6a9dae6e39
Merge pull request #145017 from SuperSandro2000/soxr 2021-11-08 09:42:28 +01:00
Sandro Jäckel
2c868afc56
soxr: switch to pname+version, minor cleanup 2021-11-07 22:11:23 +01:00
Felix Bühler
fbdf78236a
pkgs/applications: rename name to pname&version part 1 (#144949)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-07 21:29:51 +01:00
Felix Buehler
a1371d3e52 wavrsocvt: remove phases 2021-08-05 21:20:29 +02:00
Ben Siraphob
2f94991628 treewide: fix redirected URLs
Using the script in maintainers/scripts/update-redirected-urls.sh
2021-08-01 00:01:50 +07:00
AndersonTorres
e9e5f5f84d Change all alsaLib references to alsa-lib 2021-06-10 01:12:49 -03:00
Ivan Babrou
59f21b70a9 soxr: add patch to fix aarch64-darwin compilation 2021-02-26 14:51:08 -08:00
Ben Siraphob
e03c068af5 treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
Walter Franzini
42e689e5bd sox: musl does not support pipe rewind
Disable the pipe rewind related feature since musl has no support for it.
2021-02-12 11:06:29 +01:00
Ben Siraphob
5d566c43b4 pkgs/applications: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08: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
Ben Siraphob
3496ce2a0c treewide: remove trailing whitespaces 2021-01-01 10:41:04 -08:00
Timo Kaufmann
cb5a4de2b9
Merge pull request #90172 from AluisioASG/aasg/sox-wv
sox: Add WavPack support
2020-10-01 17:21:06 +02:00
Markus Kowalewski
7f0fde0822
wavesurfer: fix license 2020-06-26 10:49:33 +02:00
Aluísio Augusto Silva Gonçalves
09f5becdd0
sox: Add WavPack support
r128gain's tests include processing some WavPack files with sox.  Allow
opting into linking with wavpack so those tests can be run.
2020-06-12 03:30:46 -03:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Anders Kaseorg
3cd8ce3bce treewide: Fix unsafe concatenation of $LD_LIBRARY_PATH
Naive concatenation of $LD_LIBRARY_PATH can result in an empty
colon-delimited segment; this tells glibc to load libraries from the
current directory, which is definitely wrong, and may be a security
vulnerability if the current directory is untrusted.  (See #67234, for
example.)  Fix this throughout the tree.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-01-15 09:47:03 +01:00
Artemis Tosini
508555518d
sox: Add option to include opus support
Many other distributions include opus support in their sox
distributions. This patch makes such an option, and sets it
to be enabled by default. This works when ogg is disabled as
as well as when ogg is enabled.
2019-04-29 14:23:39 +00:00
Väinö Järvelä
3cc74c3a7c Add CoreAudio to sox on macOS
Otherwise no audio devices are available for recording and playback on
macOS.
2019-03-18 20:17:40 +02:00
Jan Malakhovski
5bcd73c73b sox: move defaults to package file 2019-02-03 15:33:32 +00:00
Silvan Mosberger
57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00
Ryan Mulligan
06a239e3a0 soxr: 0.1.2 -> 0.1.3
Semi-automatic update. These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 0.1.3 with grep in /nix/store/n6as7dvjq9vlsri84smc05yjmdvwmxww-soxr-0.1.3
- found 0.1.3 in filename of file in /nix/store/n6as7dvjq9vlsri84smc05yjmdvwmxww-soxr-0.1.3
2018-03-09 13:31:31 -08:00
Eric Litak
92a8c86647 sox: added enableLibpulseaudio option 2017-03-24 07:55:04 -07:00
Michiel Leenaars
fe87145c58 wavrsocvt: init at 1.0.2.0 2016-08-29 22:57:14 +02:00
Tuomas Tynkkynen
74a3a2cd7e treewide: Use makeBinPath 2016-08-23 01:18:10 +03:00
Tuomas Tynkkynen
21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00
Vladimír Čunát
6c75f4c9aa imagemagick, soxr, fftw, libraw: remove explicit gcc.lib
It is no longer needed after cc-wrapper fixes.
2015-10-28 10:17:07 +01:00
Vladimír Čunát
968567c6e5 soxr: split away the documentation 2015-10-13 20:18:54 +02:00