Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 19 lines 440 B view raw
1{ 2 lib, 3 stdenv, 4 mingw_w64_headers, 5 # Rustc require 'libpthread.a' when targeting 'x86_64-pc-windows-gnu'. 6 # Enabling this makes it work out of the box instead of failing. 7 withStatic ? true, 8}: 9 10stdenv.mkDerivation { 11 pname = "mingw_w64-pthreads"; 12 inherit (mingw_w64_headers) version src meta; 13 14 configureFlags = [ (lib.enableFeature withStatic "static") ]; 15 16 preConfigure = '' 17 cd mingw-w64-libraries/winpthreads 18 ''; 19}