summary refs log tree commit diff
path: root/pkgs/os-specific/windows/mcfgthreads/default.nix
blob: 3f882557e50369b43c2db1f7c84d8a0177cf2416 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchFromGitHub, autoreconfHook }:

stdenv.mkDerivation {
  pname = "mcfgthreads";
  version = "git";

  src = fetchFromGitHub {
    owner = "lhmouse";
    repo = "mcfgthread";
    rev = "9570e5ca7b98002d707c502c919d951bf256b9c6";
    sha256 = "10y2x3x601a7c1hkd6zlr3xpfsnlr05xl28v23clf619756a5755";
  };

  outputs = [ "out" "dev" ];

  # Don't want prebuilt binaries sneaking in.
  postUnpack = ''
    rm -r "$sourceRoot/debug" "$sourceRoot/release"
  '';

  postPatch = ''
    substituteInPlace Makefile.am --replace '-Werror' ''
  '';

  nativeBuildInputs = [
    autoreconfHook
  ];
}