nixpkgs-overlay/gust_tools/default.nix

36 lines
943 B
Nix
Raw Normal View History

2021-08-13 12:10:50 +02:00
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
2021-08-11 23:56:43 +02:00
stdenv.mkDerivation rec {
pname = "gust_tools";
version = "1.37";
src = fetchFromGitHub {
owner = "VitaSmith";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/Uq+NaAAKbiEAxFnB0UJkhdsGKa6uQBnH9AmAlpi30s=";
};
patches = [
2021-08-13 12:10:50 +02:00
(fetchpatch {
url = "https://github.com/VitaSmith/gust_tools/commit/b564b54b1825e15bc743450605d8dae0a7366d1e.patch";
sha256 = "sha256-geTqFT89U2JRJwKduqkRbO0DlOvKxqqquvVVVIu2IB8=";
})
2021-08-11 23:56:43 +02:00
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp gust_{ebm,elixir,enc,g1t,pak} $out/bin/
runHook postInstall
'';
meta = with lib; {
description = "A set of utilities for dealing with Gust (Koei Tecmo) PC games files";
homepage = "https://github.com/VitaSmith/gust_tools";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.unix;
};
}