mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, attr
|
|
, gettext
|
|
, autoconf
|
|
, automake
|
|
, ncurses
|
|
, libtool
|
|
, libuuid
|
|
, libxfs
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xfsdump";
|
|
version = "3.1.12";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/linux/utils/fs/xfs/${pname}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-85xMGzBrLdfsl5wOlNYP5pCD0uz5rwUcrF7zvtdyx0o=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
automake
|
|
gettext
|
|
libtool
|
|
];
|
|
buildInputs = [
|
|
attr
|
|
libuuid
|
|
libxfs
|
|
ncurses
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace "cp include/install-sh ." "cp -f include/install-sh ."
|
|
'';
|
|
|
|
# Conifigure scripts don't check PATH, see xfstests derviation
|
|
preConfigure = ''
|
|
export MAKE=$(type -P make)
|
|
export MSGFMT=$(type -P msgfmt)
|
|
export MSGMERGE=$(type -P msgmerge)
|
|
export XGETTEXT=$(type -P xgettext)
|
|
|
|
make configure
|
|
patchShebangs ./install-sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "XFS filesystem incremental dump utility";
|
|
homepage = "https://git.kernel.org/pub/scm/fs/xfs/xfsdump-dev.git/tree/doc/CHANGES";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.lunik1 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|