windows.mcfgthreads: 1.9.3 -> 2.1.1

This commit is contained in:
Ross Smyth 2025-08-01 16:55:08 -04:00
parent b4b350d8bd
commit 9fe90d264e

View File

@ -1,20 +1,25 @@
{
lib,
stdenv,
writeScriptBin,
fetchFromGitHub,
meson,
ninja,
}:
stdenv.mkDerivation rec {
let
dllTool = writeScriptBin "dlltool" ''
${stdenv.cc.targetPrefix}dlltool "$@"
'';
in
stdenv.mkDerivation (finalAttrs: {
pname = "mcfgthread";
version = "1.9.2";
version = "2.1.1";
src = fetchFromGitHub {
owner = "lhmouse";
repo = "mcfgthread";
rev = "v${lib.versions.majorMinor version}-ga.${lib.versions.patch version}";
hash = "sha256-bB7ghhSqAqkyU1PLuVVJfkTYTtEU9f0CR1k+k+u3EgY=";
tag = "v${lib.versions.majorMinor finalAttrs.version}-ga.${lib.versions.patch finalAttrs.version}";
hash = "sha256-kEqS1+2CB/Ryor2WbI67KALnlTcD9oSFEdC6Av73roE=";
};
postPatch = ''
@ -27,6 +32,7 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [
dllTool
meson
ninja
];
@ -36,6 +42,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/lhmouse/mcfgthread/wiki";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ wegank ];
teams = [ lib.teams.windows ];
platforms = lib.platforms.windows;
};
}
})