Commit Graph

73 Commits

Author SHA1 Message Date
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
Sirio Balmelli
e13e593f1a
dpkg: add CoreServices to fix Darwin build
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2024-08-06 09:16:13 +02:00
R. Ryantm
8e8f5b90c5
dpkg: 1.22.6 -> 1.22.10 2024-08-06 09:16:13 +02:00
R. Ryantm
34cfb7a535 dpkg: 1.22.5 -> 1.22.6 2024-07-17 13:21:40 +00:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
R. Ryantm
020f99459b dpkg: 1.22.4 -> 1.22.5 2024-03-14 14:09:18 +00:00
R. Ryantm
507bfd5f0a dpkg: 1.22.1 -> 1.22.4 2024-03-01 02:34:43 +00:00
R. Ryantm
b57bab9604 dpkg: 1.22.0 -> 1.22.1 2023-11-03 07:28:15 +00:00
R. Ryantm
f1012af12f dpkg: 1.21.22 -> 1.22.0 2023-08-31 16:04:07 +00:00
Paul Meyer
542444304f dpkg: fix glibc issue on darwin
Was introduced in #249311, there is no glibc on darwin (and the
replacement isn't needed).

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-08-23 23:00:04 +00:00
Paul Meyer
48f8f3700a dpkg: fix paths and disable start-stop-daemon
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-08-21 17:53:11 +00:00
R. Ryantm
cdedbea00a dpkg: 1.21.21ubuntu1 -> 1.21.22 2023-06-02 11:29:03 +00:00
huantian
cdd1063945
dpkg: add setup-hook for unpacking .deb files 2023-05-08 21:59:21 -07:00
Mike Purvis
493cf90d16 dpkg: 1.21.1ubuntu2.1 -> 1.21.21ubuntu1
https://salsa.debian.org/dpkg-team/dpkg/-/blob/1.21.21/debian/changelog
2023-03-18 11:37:32 +01:00
Wanja Hentze
09b73d741c dpkg: 1.20.9ubuntu2 -> 1.21.1ubuntu2.1
Fixes https://nvd.nist.gov/vuln/detail/CVE-2022-1664
See also https://ubuntu.com/security/notices/USN-5446-1
2022-07-08 15:46:50 +02:00
Jörg Thalheim
fc3f1aa679 dpkg: switch to ubuntu version
The ubuntu version now supports zstd compression, which was not yet
added to upstream. This is a problem when we want to unpack newer
archives from ubuntu because they switched to zstd by default.

Upstream discussions:

https://www.mail-archive.com/debian-dpkg-bugs@lists.debian.org/msg18552.html
2021-12-11 12:08:58 +01:00
R. RyanTM
8fb7796a46 dpkg: 1.20.7.1 -> 1.20.9 2021-04-28 06:55:59 +00:00
rnhmjoj
61b7cab481
treewide: use perl.withPackages when possible
Since 03eaa48 added perl.withPackages, there is a canonical way to
create a perl interpreter from a list of libraries, for use in script
shebangs or generic build inputs. This method is declarative (what we
are doing is clear), produces short shebangs[1] and needs not to wrap
existing scripts.

Unfortunately there are a few exceptions that I've found:

  1. Scripts that are calling perl with the -T switch. This makes perl
  ignore PERL5LIB, which is what perl.withPackages is using to inform
  the interpreter of the library paths.

  2. Perl packages that depends on libraries in their own path. This
  is not possible because perl.withPackages works at build time. The
  workaround is to add `-I $out/${perl.libPrefix}` to the shebang.

In all other cases I propose to switch to perl.withPackages.

[1]: https://lwn.net/Articles/779997/
2021-03-31 21:35:37 +02:00
R. RyanTM
e72c037e52 dpkg: 1.20.5 -> 1.20.7.1 2021-01-19 13:04:33 +00:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +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
Sirio Balmelli
5a29435e2e
dpkg: 1.20.0 -> 1.20.5
Fixes broken Darwin build in 1.20.0

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2020-07-20 13:47:11 +02:00
R. RyanTM
5454317570 dpkg: 1.19.7 -> 1.20.0 2020-03-10 18:56:46 +00: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
John Ericson
852d81d607
Merge pull request #63698 from tobim/overrideCC-buildPackages
Fix misuses of overrideCC
2019-06-23 18:19:18 -04:00
Tobias Mayer
79d72ccd3c dpkg: fix cross compilation 2019-06-23 17:07:38 +02:00
R. RyanTM
1dc837c8cb dpkg: 1.19.6 -> 1.19.7
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/dpkg/versions
2019-06-17 15:29:06 +02:00
R. RyanTM
a750496f56 dpkg: 1.19.5 -> 1.19.6 (#58667)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/dpkg/versions
2019-04-07 23:42:47 +02:00
R. RyanTM
0770264fdf dpkg: 1.19.4 -> 1.19.5
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/dpkg/versions
2019-03-01 18:24:57 -08:00
R. RyanTM
1eb59f30e5 dpkg: 1.19.2 -> 1.19.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/dpkg/versions
2019-01-28 14:21:23 -08:00
R. RyanTM
23661254e4 dpkg: 1.19.0.5 -> 1.19.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/dpkg/versions
2018-10-16 00:06:07 -07:00
Frederik Rietdijk
27f6f9409b
Merge pull request #33967 from yegortimoshenko/20180117.050213/mornfall
maintainers: remove mornfall from packages
2018-01-18 11:27:31 +01:00
adisbladis
43d1a38b8d
dpkg: 1.19.0.4 -> 1.19.0.5 2018-01-18 02:24:23 +08:00
Yegor Timoshenko
506c89c30a maintainers: remove mornfall from packages 2018-01-17 05:17:33 +00:00
Tobias Geerinckx-Rice
0f84673f3d
Remove nckx as a maintainer for all packages
Goodbye, and thanks for all the Nix...
2018-01-16 23:00:49 +01:00
adisbladis
b972139a59 dpkg: 1.18.24 -> 1.19.0.4 (#30854)
* dpkg: 1.18.24 -> 1.19.0.4

* dpkg: just use one substituteInPlace call
2017-10-28 10:07:43 +01:00
Rickard Nilsson
3c136e5fa4 dpkg: 1.18.18 -> 1.18.24
Fixes CVE-2017-8283
2017-08-14 14:00:12 +02:00
mimadrid
09e0cc7cc7
Update homepage attributes: http -> https
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated
https://repology.org/repository/nix_stable/problems
2017-08-03 11:56:15 +02:00
Franz Pletz
2a7707cf5c
dpkg: 1.18.15 -> 1.18.18 2017-01-26 03:52:48 +01:00
Tobias Geerinckx-Rice
2034ffdc07
dpkg: 1.18.14 -> 1.18.15 2016-11-16 13:20:32 +01:00
Tobias Geerinckx-Rice
8ef3eaeb4e
dpkg: remove commented old postPatch
This was supposed to be removed in 7f71b89454
since it doesn't appear to be needed any longer.
2016-11-14 05:32:22 +01:00
Tobias Geerinckx-Rice
7f71b89454
dpkg: 1.18.10 -> 1.18.14 2016-11-14 01:45:49 +01:00
Benjamin Staffin
2e88851c61 dpkg: Fix the build on Darwin
There are still some bugs and quirks, but this gets dpkg building at
least, and some parts of it are useful.
2016-09-05 01:14:36 -04:00
Tobias Geerinckx-Rice
80cae1f055
dpkg: 1.18.9 -> 1.18.10 2016-08-04 00:25:20 +02:00
Tobias Geerinckx-Rice
ce5c51b406
dpkg: 1.18.8 -> 1.18.9 2016-07-06 19:42:45 +02:00
Tobias Geerinckx-Rice
12c055240d
dpkg: 1.18.7 -> 1.18.8 2016-07-06 15:56:33 +02:00
Tobias Geerinckx-Rice
2cf6c67d15
dpkg: 1.18.6 -> 1.18.7 2016-05-14 16:01:33 +02:00
Tobias Geerinckx-Rice
e58cd82e87
dpkg: 1.18.5 -> 1.18.6 2016-05-05 02:16:56 +02:00
Tobias Geerinckx-Rice
6b6463dbd2
dpkg: 1.18.4 -> 1.18.5 2016-05-03 02:01:12 +02:00
Tobias Geerinckx-Rice
99c4f143d9 debian-devscripts: rename from deprecated debian_devscripts 2016-03-24 20:24:00 +01:00