summary refs log tree commit diff
path: root/pkgs/tools/filesystems/jfsutils/default.nix
blob: 954393e45897d552f9184363aa32b719dc104d0f (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
33
{ stdenv, fetchurl, fetchpatch, libuuid, autoreconfHook }:

stdenv.mkDerivation rec {
  name = "jfsutils-1.1.15";

  src = fetchurl {
    url = "http://jfs.sourceforge.net/project/pub/${name}.tar.gz";
    sha256 = "0kbsy2sk1jv4m82rxyl25gwrlkzvl3hzdga9gshkxkhm83v1aji4";
  };

  patches = [
    ./types.patch
    ./hardening-format.patch
    # required for cross-compilation
    ./ar-fix.patch
    # fix for glibc>=2.28
    (fetchpatch {
      name   = "add_sysmacros.patch";
      url    = "https://sources.debian.org/data/main/j/jfsutils/1.1.15-4/debian/patches/add_sysmacros.patch";
      sha256 = "1qcwvxs4d0d24w5x98z59arqfx2n7f0d9xaqhjcg6w8n34vkhnyc";
    })
  ];

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ libuuid ];

  meta = with stdenv.lib; {
    description = "IBM JFS utilities";
    homepage = "http://jfs.sourceforge.net";
    license = licenses.gpl3;
    platforms = platforms.linux;
  };
}