fheroes2: add trivial updater script
This commit is contained in:
parent
796af3ddba
commit
5997908de5
@ -1,5 +1,8 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub
|
{ stdenv, lib, fetchFromGitHub
|
||||||
, gettext, libpng, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, zlib
|
, gettext, libpng, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, zlib
|
||||||
|
|
||||||
|
# updater only
|
||||||
|
, nix-update-script
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -29,6 +32,12 @@ stdenv.mkDerivation rec {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = nix-update-script {
|
||||||
|
attrPath = pname;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ihhub/fheroes2";
|
homepage = "https://github.com/ihhub/fheroes2";
|
||||||
description = "Free implementation of Heroes of Might and Magic II game engine";
|
description = "Free implementation of Heroes of Might and Magic II game engine";
|
||||||
|
Loading…
Reference in New Issue
Block a user