From 969f9ae9f53e29a1ebc758dd6c2c03f28cdbdb49 Mon Sep 17 00:00:00 2001 From: Keenan Weaver Date: Fri, 24 Apr 2026 17:52:07 -0500 Subject: [PATCH] wolfstoneextract: change source, modernize --- pkgs/by-name/wo/wolfstoneextract/package.nix | 34 +++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/wo/wolfstoneextract/package.nix b/pkgs/by-name/wo/wolfstoneextract/package.nix index 4f779d08633d..4493b4b779c1 100644 --- a/pkgs/by-name/wo/wolfstoneextract/package.nix +++ b/pkgs/by-name/wo/wolfstoneextract/package.nix @@ -1,34 +1,44 @@ { lib, stdenv, - fetchFromBitbucket, + fetchFromGitHub, cmake, + nix-update-script, + versionCheckHook, }: stdenv.mkDerivation (finalAttrs: { pname = "wolfstoneextract"; version = "1.2"; - src = fetchFromBitbucket { - owner = "ecwolf"; - repo = "wolfstoneextract"; - rev = finalAttrs.version; + src = fetchFromGitHub { + owner = "ECWolfEngine"; + repo = "WolfstoneExtract"; + tag = finalAttrs.version; hash = "sha256-yrYLP2ewOtiry+EgH1IEaxz2Q55mqQ6mRGSxzVUnJ8Q="; }; + __structuredAttrs = true; + strictDeps = true; + nativeBuildInputs = [ cmake ]; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = [ "--help" ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Utility to extract Wolfstone data from Wolfenstein II"; - mainProgram = "wolfstoneextract"; - homepage = "https://bitbucket.org/ecwolf/wolfstoneextract/src/master/"; - platforms = [ "x86_64-linux" ]; - license = with lib.licenses; [ - gpl3Only - bsd3 - ]; + homepage = "https://github.com/ECWolfEngine/WolfstoneExtract"; + changelog = "https://github.com/ECWolfEngine/WolfstoneExtract/blob/${finalAttrs.src.rev}/changelog"; + license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ keenanweaver ]; + mainProgram = "wolfstoneextract"; + sourceProvenance = with lib.sourceTypes; [ fromSource ]; + platforms = [ "x86_64-linux" ]; }; })