mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
rarezip: init at 0-unstable-2023-09-05
This commit is contained in:
38
pkgs/by-name/ra/rarezip/package.nix
Normal file
38
pkgs/by-name/ra/rarezip/package.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "rarezip";
|
||||
version = "0-unstable-2023-09-05";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MittenzHugg";
|
||||
repo = "rarezip";
|
||||
rev = "2c4ba146c1b2fec851d3db8cf455c6af090bc544";
|
||||
hash = "sha256-t4/DgDeUOZAiX3yc2FUrm5mCRIgX0THFVBFSEYOSAhI=";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
substituteInPlace gzip/zip.c \
|
||||
--replace-fail "size_t bufs_init();" ""
|
||||
|
||||
mkdir c
|
||||
make c
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib
|
||||
cp c/librarezip.a $out/lib
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Library version gzip v1.2.4 with foreign function interfaces to multiple languages";
|
||||
homepage = "https://github.com/MittenzHugg/rarezip";
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = with lib.maintainers; [ qubitnano ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user