mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
f0e64ce16f
Manual migration for the sake of by-name migration is no longer discouraged since #340235.
46 lines
915 B
Nix
46 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";
|
|
};
|
|
}
|