Commit Graph

59 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
Demian Garcia
e4533da962 plan9port: 2022-09-12 -> 2023-03-31 2023-05-26 07:04:39 +00:00
Weijia Wang
41889978d3 plan9port: unbreak on x86_64-darwin 2022-12-23 17:15:32 +01:00
AndersonTorres
d8e45aef2a plan9port: incorporate darwin into its expression 2022-12-12 09:41:26 -03:00
Yestin L. Harrison
a335198d4d plan9port: 2021-10-19 -> 2022-09-12
the new version stamps out further path-related annoyances, though
it does require explicitly giving PLAN9_TARGET during buildPhase
(everything moves to $out during installPhase anyway, where
./INSTALL works it out unassisted).
2022-12-06 02:35:02 -08:00
Yestin L. Harrison
c9186a15a5 plan9port: use built-in ./INSTALL 2022-08-03 07:43:04 -07:00
Yestin L. Harrison
ab98ee2c92 plan9port: remove spurious patches 2022-07-26 11:57:16 -07:00
Yestin L. Harrison
8b618c0d5a maintainers: add myself 2022-07-26 07:56:24 -07:00
Yestin L. Harrison
b82d121152 plan9port: update darwin inputs 2022-07-26 07:47:06 -07:00
Malo Bourgon
0e802eafad treewide: add meta.mainProgram to many packages 2022-04-14 10:24:01 -07:00
Yestin L. Harrison
0fd4de2ae2 plan9port: add DarwinTools to buildInputs on darwin 2021-11-30 15:59:43 -08:00
Yestin L. Harrison
5afe6d962c
plan9port: tighten up broken 2021-11-19 21:22:09 -08:00
AndersonTorres
927e685929 Mark as broken on Darwin 2021-11-17 13:53:25 -03:00
AndersonTorres
17b1055d65 plan9port: quick&dirty breakage fix
The presence of '+' in version string propagates to PATH variable, which breaks
`u` script, because `u` uses p9p's `sed` that treats `+` as a metacharacter.

Because of this, the version string will be reverted.
2021-11-16 20:16:43 -03:00
AndersonTorres
9199162d63 plan9port: 2021-04-22 -> 0.pre+date=2021-10-19 2021-11-03 17:06:38 -03:00
Yestin L. Harrison
07deb55d5d
plan9port: unmark as broken on darwin
Builds and runs just fine with an overlay filtering out the broken attr
2021-08-11 12:55:08 -06:00
Emery Hemingway
f524f88402 plan9port: 2020-01-08 -> 2021-04-22
* Relicense as MIT!
* Mark Darwin broken.
2021-06-25 10:12:48 +02: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
Emery Hemingway
6148e0ca85 acme: build for aarch64 2020-07-28 16:05:10 +02:00
Jörg Thalheim
5e76bf706b
Merge pull request #84920 from eraserhd/plan9port-version-update
plan9port: 2019-02-25 -> 2020-01-08
2020-04-20 12:12:15 +01:00
Jason Felice
ff4419ac4a plan9port: Do not attempt to build on aarch64-linux 2020-04-16 13:08:50 -04:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jason Felice
a83bafb27e plan9port: 2019-02-25 -> 2020-01-08 2020-04-10 11:46:48 -04:00
Jason Felice
7724ef793a plan9port: wrap ALL linker flags 2020-02-20 17:40:30 -05:00
Jason Felice
4d2a8257ed plan9port: fix linker flags for macosx 2020-02-19 20:31:14 -05:00
Daiderd Jordan
1de5065375
plan9port: remove cf-private
No longer needed since #63381.
2019-12-27 18:36:03 +01:00
Jason Felice
1a5c68c7fe plan9port: do not use which in builder.sh
Removing the build time dependency on which broke builder.sh
2019-09-16 22:15:59 -04:00
Anderson Torres
868bf106f1
Merge pull request #66404 from eraserhd/pr/master/plan9port-mac-compiler-fixes
plan9port: use C compiler from Nix
2019-09-10 07:45:51 -03:00
Jason Felice
51faa42af6 plan9port: avoid needing to propagate "which" 2019-09-09 12:31:09 -04:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +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
Jason Felice
83c1e8c319 plan9port: use C compiler from Nix
The install script was escaping the Nix environment on Mac OS by using
`xcrun -sdk macos clang` as its C compiler.  Using the Nix compiler
required declaring the necessary frameworks as inputs and patching
build scripts to assume MacOS 10.12 (and not try to detect).

So cached derivations prior to this would probably not work on all
intended target machines.

This *might* also fix installCheck on Darwin on Hydra.

Other minor fixes:

* Disable parallel building due to a race with a missing y.tab.h
* Use NIX_CFLAGS_COMPILE/NIX_LDFLAGS instead of trying to synthesize
  something like them.
* X11 dependencies aren't used on Darwin when the windowing system
  is correctly detected
2019-08-09 16:29:51 -04:00
Jason Felice
26aef37424 plan9port: build everything on Darwin
A commit in 2014 (see #2266) disabled building parts which depended on
X11 on Mac OS.  There's no explanation given in the pull request.  In
any case, many people install plan9port on Darwin specifically to use
the UI components.

Aside from this, the derivation was broken on Mac OS, probably because
people put the `which` and `perl` dependencies inside the !isDarwin
conditional.  Some programs worked, however the static libraries did
not build, so this could not be used as a buildInput to build programs
which need the libraries.  This fixes that.
2019-06-11 16:32:59 -04:00
AndersonTorres
e71445c330 plan9port: 2018-09-20 -> 2019-02-25 2019-03-17 09:46:05 -03:00
Lengyel Balazs
f4a53ff3bc treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
Brandon Elam Barker
7a86c6760a plan9port: 2016-04-18 -> 2018-09-20 2018-10-07 22:13:24 -04:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Ram Kromberg
c40578ccbb plan9port 2015-11-10 -> 2016-04-18 (#18228) 2016-09-04 14:52:34 +02:00
Ram Kromberg
e852a8e8b6 plan9port: 2015-06-29 -> 2015-11-10 2016-08-31 08:58:45 +03:00
Tuomas Tynkkynen
bac26e08db Fix lots of fetchgit hashes (fallout from #15469) 2016-06-03 17:17:08 +03:00
Vladimír Čunát
f8c211fd2b fontconfig: split into multiple outputs
Fixed all 'fontconfig}' references as well, hopefully, ugh!
2015-10-05 12:23:56 +02:00
Vladimír Čunát
32b31398eb xorg.libXt: re-split into multiple outputs
Fixed all 'libXt}' references, too.
2015-10-05 11:23:34 +02:00
Kovacsics Robert (NixOS-SSD2)
d6e1ee5651 plan9port: fix interpreter paths, add perl
Fixing interpreter paths was done by exporting PLAN9_TARGET, which
INSTALL looks at. Giving $PLAN9 to INSTALL does not achieve this, as
INSTALL only looks at its first argument so I removed the other
arguments to avoid confusion.

Perl is an optional dependency for a script that adds URLs to man pages,
I have added it to get fewer errors during install.
2015-09-10 13:50:51 +01:00
Kovacsics Robert (NixOS-SSD2)
195671aa70 plan9port: 20140306 -> 2015-06-29
We were already using snapshots, but development moved to github.
Also add "9" to $out/bin as it is the recommended practice, see
install.txt
2015-08-24 21:55:48 +01:00
Emery Hemingway
3e5a0dcf55 plan9port: fix acme font loading 2015-01-14 11:59:34 -05:00
Siarhei Zirukin
2c8ff5fdb7 plan9port: fix destination path in sources; add myself as a maintainer 2014-12-17 23:37:18 +01:00
Siarhei Zirukin
60f2081019 plan9port: make it actually work
* Add "which" dependency, otherwise it builds with lots of
  "command not found" errors.

* -lgcc_s, otherwise many commands basically fail without pthread_cancel.

* Fix X11 dependencies, otherwise it would be plan9port with none of UI
  programs working.
2014-12-06 16:18:30 +01:00
Vladimír Čunát
e5a701eaa2 plan9port: fix eval (license typo) 2014-08-15 02:06:45 +02:00
Vladimír Čunát
a149b1f31f plan9port: enableParallelBuilding, improve meta 2014-08-15 00:11:28 +02:00