This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
35 lines
733 B
Nix
35 lines
733 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "offzip";
|
|
version = "0.4.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://web.archive.org/web/20230419080810/https://aluigi.altervista.org/mytoolz/offzip.zip";
|
|
hash = "sha256-dmYeSdtNvx6FBuyCdiu+q1ExEfgN8fDO8coyJmFrjKY=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
buildInputs = [
|
|
zlib
|
|
];
|
|
|
|
makeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
];
|
|
|
|
meta = {
|
|
description = "Tool to unpack the zip data contained in any type of file";
|
|
homepage = "https://aluigi.altervista.org/mytoolz.htm#offzip";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ r-burns ];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "offzip";
|
|
};
|
|
}
|