depot/third_party/nixpkgs/pkgs/tools/compression/lziprecover/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

31 lines
755 B
Nix

{ lib, stdenv, fetchurl, lzip }:
stdenv.mkDerivation rec {
pname = "lziprecover";
version = "1.22";
src = fetchurl {
url = "mirror://savannah/lzip/lziprecover/${pname}-${version}.tar.gz";
sha256 = "sha256-/ZWKCXX3cpxE87eE5WaJH3NsPcaDdNvSFJ7mkqFtCGI=";
};
configureFlags = [
"CPPFLAGS=-DNDEBUG"
"CFLAGS=-O3"
"CXXFLAGS=-O3"
"CXX=${stdenv.cc.targetPrefix}c++"
];
doCheck = true;
checkInputs = [ lzip ];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://www.nongnu.org/lzip/lziprecover.html";
description = "Data recovery tool for lzip compressed files";
license = lib.licenses.gpl2Plus;
maintainers = with maintainers; [ vlaci ];
platforms = lib.platforms.all;
};
}