2022-01-02 16:26:44 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "unzoo";
|
|
|
|
version = "4.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "museoa";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-oPq1I7EsvHaJ7anHbm/KWrYrxJkM79rLhgRfSAdoLtk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
${stdenv.cc.targetPrefix}cc -o unzoo -DSYS_IS_UNIX src/unzoo.c
|
|
|
|
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin $doc/share/doc/${pname}
|
|
|
|
cp unzoo $out/bin
|
|
|
|
cp README.TXT $doc/share/doc/${pname}
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-01-06 18:06:26 +01:00
|
|
|
homepage = "https://github.com/museoa/unzoo/";
|
2022-01-02 16:26:44 +01:00
|
|
|
description = "Manipulate archives of files in Zoo compressed form";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.all;
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "unzoo";
|
2022-01-02 16:26:44 +01:00
|
|
|
};
|
|
|
|
}
|