Commit Graph

9 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
Panakotta00
c206b4a28b
sdrpp: Fix SoapySDR dependency
Fixes the SoapySDR dependency of SDR++ to use the package `soapysdr-with-plugins` which follows correct usage of SoapySDR.
2024-08-13 20:59:41 +02:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
Henner Zeller
205038b1f7 sdrpp: 1.0.4 -> 1.1.0-unstable-2024-01-22
sdrpp switched to a rolling release, so take a git hash from head.
2024-01-22 14:15:00 -08:00
Robert Schütz
cf3243a243 sdrpp: don't use librtlsdr alias 2023-02-27 11:39:26 -08:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Nikolay Korotkiy
dbb31f2e0c
sdrpp: fix build on darwin 2022-05-20 16:19:06 +03:00
Nikolay Korotkiy
049264c39b
sdrpp: enable on darwin 2021-10-29 03:10:26 +03:00
Nikolay Korotkiy
6e575758b2
sdrpp: init at 1.0.4 2021-10-22 10:43:36 +03:00