windows.mcfgthreads: unstable-2023-06-06 -> 1.6.1, refactor

+18 -6
+18 -6
pkgs/os-specific/windows/mcfgthreads/default.nix
··· 1 - { stdenv, fetchFromGitHub, autoreconfHook }: 2 3 - stdenv.mkDerivation { 4 - pname = "mcfgthreads"; 5 - version = "unstable-2023-06-06"; 6 7 src = fetchFromGitHub { 8 owner = "lhmouse"; 9 repo = "mcfgthread"; 10 - rev = "f0a335ce926906d634c787249a89220045bf0f7e"; 11 - hash = "sha256-PLGIyoLdWgWvkHgRe0vHLIvnCxFpmHtbjS8xRhNM9Xw="; 12 }; 13 14 outputs = [ "out" "dev" ]; ··· 16 nativeBuildInputs = [ 17 autoreconfHook 18 ]; 19 }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + }: 6 7 + stdenv.mkDerivation rec { 8 + pname = "mcfgthread"; 9 + version = "1.6.1"; 10 11 src = fetchFromGitHub { 12 owner = "lhmouse"; 13 repo = "mcfgthread"; 14 + rev = "v${lib.versions.majorMinor version}-ga.${lib.versions.patch version}"; 15 + hash = "sha256-FrmeaQhwLrNewS0HDlbWgCvVQ5U1l0jrw0YVuQdt9Ck="; 16 }; 17 18 outputs = [ "out" "dev" ]; ··· 20 nativeBuildInputs = [ 21 autoreconfHook 22 ]; 23 + 24 + meta = { 25 + description = "A threading support library for Windows 7 and above"; 26 + homepage = "https://github.com/lhmouse/mcfgthread/wiki"; 27 + license = lib.licenses.gpl3Plus; 28 + maintainers = with lib.maintainers; [ wegank ]; 29 + platforms = lib.platforms.windows; 30 + }; 31 }