mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
Merge pull request #153241 from AndersonTorres/new-zoo
unzoo: init at 4.4
This commit is contained in:
commit
74f542c42e
44
pkgs/tools/archivers/unzoo/default.nix
Normal file
44
pkgs/tools/archivers/unzoo/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ 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 = "http://github.com/museoa/unzoo/";
|
||||
description = "Manipulate archives of files in Zoo compressed form";
|
||||
license = licenses.publicDomain;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -9383,6 +9383,8 @@ with pkgs;
|
|||
|
||||
runzip = callPackage ../tools/archivers/runzip { };
|
||||
|
||||
unzoo = callPackage ../tools/archivers/unzoo { };
|
||||
|
||||
ruplacer = callPackage ../tools/text/ruplacer {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue