nixpkgs/pkgs/tools/archivers/fsarchiver/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

45 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, zlib, bzip2, lzma, lzo, lz4, zstd, xz
, libgcrypt, e2fsprogs, util-linux, libgpgerror }:
let
version = "0.8.5";
in stdenv.mkDerivation {
pname = "fsarchiver";
inherit version;
src = fetchFromGitHub {
owner = "fdupoux";
repo = "fsarchiver";
rev = version;
sha256 = "1rvwq5v3rl14bqxjm1ibfapyicf0sa44nw7451v10kx39lp56ylp";
};
nativeBuildInputs = [
autoreconfHook pkgconfig
];
buildInputs = [
zlib bzip2 lzma lzo lz4 zstd xz
libgcrypt e2fsprogs util-linux libgpgerror
];
meta = with lib; {
description = "File system archiver for linux";
longDescription = ''
FSArchiver is a system tool that allows you to save the contents of a
file-system to a compressed archive file. The file-system can be restored
on a partition which has a different size and it can be restored on a
different file-system. Unlike tar/dar, FSArchiver also creates the
file-system when it extracts the data to partitions. Everything is
checksummed in the archive in order to protect the data. If the archive is
corrupt, you just loose the current file, not the whole archive.
'';
homepage = "https://www.fsarchiver.org/";
license = licenses.lgpl2;
maintainers = [ maintainers.etu ];
platforms = platforms.linux;
};
}