nixpkgs/pkgs/tools/archivers/fsarchiver/default.nix
Patrick Hilhorst f7e390e6d4 treewide: fix redirected urls (run 3)
Related:
 - 9fc5e7e473
 - 593e11fd94
 - 508ae42a0f

Since the last time I ran this script, the Repology API changed, so I had to
adapt the script used in the previous PR. The new API should be more robust, so
overall this is a positive (no more grepping the error messages for our relevant
data but just a nice json structure).

Here's the new script I used:

```sh
curl https://repology.org/api/v1/repository/nix_unstable/problems \
   | jq -r '.[] | select(.type == "homepage_permanent_https_redirect") | .data | "s@\(.url)@\(.target)@"' \
   | sort | uniq | tee script.sed
find -name '*.nix' | xargs -P4 -- sed -f script.sed -i
```

I will also add this script to `maintainers/scripts`.
2020-10-02 09:01:35 -07:00

45 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, zlib, bzip2, lzma, lzo, lz4, zstd, xz
, libgcrypt, e2fsprogs, utillinux, 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 utillinux libgpgerror
];
meta = with stdenv.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;
};
}