Commit Graph

18 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
David McFarland
2204ed73c4 p4v: 2022.2.2336701 -> 2024.2/2606884 2024-06-21 13:37:45 -03:00
Noah Fontes
a289e7feb1
p4v: add support for x86_64-darwin 2022-10-07 23:26:49 -07:00
Noah Fontes
0defcde4c0
p4v: wrap derivation to avoid polluting PATH
P4V includes a bunch of extra binaries in its bin directory that are
only useful as part of their wrapper scripts. They really belong in a
libexec-style directory, but their wrappers hardcode bin, so we take the
easier approach of wrapping their wrappers.
2022-10-07 21:26:19 -07:00
Noah Fontes
98d026a144
p4v: use autoPatchelfHook, upstream libraries
P4V comes with a compatible set of Qt libraries that just need to be
patchelf'd to be usable, which avoids the need for the crypto hack we
were using. Switch to using autoPatchelfHook for all libraries, and
prefer the distribution's Qt libraries as part of that.

This also fixes a bug in the distributed version of p4d, which prevented
DVCS from working correctly in P4V.
2022-10-07 21:26:19 -07:00
Noah Fontes
a8cf5d3497
p4v: 2021.3.2186916 -> 2022.2.2336701 2022-10-07 21:26:14 -07:00
Robert Scott
466c2e342a treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
David McFarland
1613130063 p4v: 2020.1.1966006 -> 2021.3.2186916 2022-01-26 08:03:29 -04:00
Ben Siraphob
badf51221d treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
David McFarland
041f70f62f p4v: 2017.3.1601999 -> 2020.1.1966006 2020-08-18 09:10:26 -03:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Nathan Yong
1ced63da76 p4v: explicitly depend on openssl 1.0 series
The 2017.3 version of p4v is linked against `libssl.so.1.0.0`.  Since
the default openssl in NixOS 2019.09 has been changed to openssl 1.1,
the p4v package must now import the openssl_1_0_2 derivation.
2019-10-18 09:26:28 +11: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
Thomas Tuegel
51d78034a1
wrapQtAppsHook: Remove ad hoc Qt wrappers 2019-07-05 10:42:08 -05:00
Robert Hensing
02ee6b85fe p4v: update sha256 2018-07-04 10:21:45 +02:00
Nicolas Schneider
be40a8b2f6 p4v: use https links 2018-03-18 15:08:26 +01:00
Nicolas Schneider
7d767d3ac3 p4v: patch the interpreter for all binaries, not just p4merge.bin 2018-03-18 15:06:51 +01:00
Nicolas Schneider
b07bc129cb p4v: init at 2017.3.1601999 2018-03-18 15:00:31 +01:00