diff --git a/pkgs/development/libraries/cosmopolitan/default.nix b/pkgs/development/libraries/cosmopolitan/default.nix index 915ee427ef58..1412f3dd6164 100644 --- a/pkgs/development/libraries/cosmopolitan/default.nix +++ b/pkgs/development/libraries/cosmopolitan/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, runCommand, unzip, cosmopolitan,bintools-unwrapped }: +{ lib, stdenv, fetchFromGitHub, unzip, cosmopolitan, bintools-unwrapped }: stdenv.mkDerivation rec { pname = "cosmopolitan"; @@ -40,19 +40,6 @@ stdenv.mkDerivation rec { checkTarget = "o//test"; doCheck = true; - passthru.tests = lib.optionalAttrs (stdenv.buildPlatform == stdenv.hostPlatform) { - hello = runCommand "hello-world" { } '' - printf 'main() { printf("hello world\\n"); }\n' >hello.c - ${stdenv.cc}/bin/gcc -g -O -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -o hello.com.dbg hello.c \ - -fuse-ld=bfd -Wl,-T,${cosmopolitan}/lib/ape.lds \ - -include ${cosmopolitan}/include/cosmopolitan.h \ - ${cosmopolitan}/lib/{crt.o,ape.o,cosmopolitan.a} - ${stdenv.cc.bintools.bintools_bin}/bin/objcopy -S -O binary hello.com.dbg hello.com - ./hello.com - printf "test successful" > $out - ''; - }; - meta = with lib; { homepage = "https://justine.lol/cosmopolitan/"; description = "Your build-once run-anywhere c library";