depot/pkgs/by-name/un/unzoo/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

45 lines
915 B
Nix

{ 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; {
homepage = "https://github.com/museoa/unzoo/";
description = "Manipulate archives of files in Zoo compressed form";
license = licenses.publicDomain;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.all;
mainProgram = "unzoo";
};
}