
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" ```
36 lines
954 B
Nix
36 lines
954 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, guile
|
|
, guile-fibers
|
|
, guile-gcrypt
|
|
, guile-gnutls
|
|
, texinfo
|
|
, pkg-config
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "guile-goblins";
|
|
version = "0.13.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://spritely.institute/files/releases/guile-goblins/guile-goblins-${version}.tar.gz";
|
|
hash = "sha256-efmyOtPAz1ZPdMCuVaGALR6e0lg7gcjt81BUMBVUKug=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ guile pkg-config texinfo ];
|
|
buildInputs = [ guile guile-fibers guile-gcrypt guile-gnutls ];
|
|
makeFlags = [ "GUILE_AUTO_COMPILE=0" ];
|
|
|
|
# tests hang on darwin, and fail randomly on aarch64-linux on ofborg
|
|
doCheck = !stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isAarch64;
|
|
|
|
meta = with lib; {
|
|
description = "Spritely Goblins for Guile";
|
|
homepage = "https://spritely.institute/goblins/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ offsetcyan ];
|
|
platforms = guile.meta.platforms;
|
|
};
|
|
}
|