about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/compression/lziprecover/default.nix
blob: c3f2ca738c7df3fb9cac679f2a4725b0482bbb2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchurl, lzip }:

stdenv.mkDerivation rec {
  pname = "lziprecover";
  version = "1.24";

  src = fetchurl {
    url = "mirror://savannah/lzip/lziprecover/${pname}-${version}.tar.gz";
    sha256 = "sha256-HWmc+u/pLrJiSjZSWAvK/gu7mP54GMJebegjvN0NRY8=";
  };

  configureFlags = [
    "CPPFLAGS=-DNDEBUG"
    "CFLAGS=-O3"
    "CXXFLAGS=-O3"
    "CXX=${stdenv.cc.targetPrefix}c++"
  ];

  doCheck = true;
  nativeCheckInputs = [ 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;
    mainProgram = "lziprecover";
  };
}