mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
strace: assert isLinux to avoid eval error on darwin (#114974)
libunwind.supportsHost is not available on darwin because it uses a different libunwind package (https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/darwin/apple-source-releases/default.nix#L270) and changing the stdenv is a big overkill.
This commit is contained in:
parent
583ad8f62e
commit
1d2e7637b6
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
{ lib, stdenv, fetchurl, perl, libunwind, buildPackages }:
|
||||
|
||||
# libunwind does not have the supportsHost attribute on darwin, thus
|
||||
# when this package is evaluated it causes an evaluation error
|
||||
assert stdenv.isLinux;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "strace";
|
||||
version = "5.11";
|
||||
|
|
Loading…
Reference in a new issue