summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/li/libisofs/package.nix
blob: 6ba5e4d4895310ef32c384571ba4568aa93e112c (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  lib,
  stdenv,
  fetchFromGitea,
  acl,
  attr,
  autoreconfHook,
  libiconv,
  zlib,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libisofs";
  version = "1.5.8.pl02";

  src = fetchFromGitea {
    domain = "dev.lovelyhq.com";
    owner = "libburnia";
    repo = "libisofs";
    rev = "release-${finalAttrs.version}";
    hash = "sha256-uyE+7H5zWcBgtOsoFtiLFroeqA0Kj7tg7s+1IzXNKBo=";
  };

  nativeBuildInputs = [
    autoreconfHook
  ];

  buildInputs =
    lib.optionals stdenv.hostPlatform.isLinux [
      acl
      attr
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      libiconv
    ]
    ++ [
      zlib
    ];

  outputs = [
    "out"
    "dev"
  ];

  enableParallelBuilding = true;

  meta = {
    homepage = "https://dev.lovelyhq.com/libburnia/web/wiki";
    description = "Library to create an ISO-9660 filesystem with extensions like RockRidge or Joliet";
    changelog = "https://dev.lovelyhq.com/libburnia/libisofs/src/tag/${finalAttrs.src.rev}/ChangeLog";
    license = lib.licenses.gpl2Plus;
    maintainers = [ ];
    platforms = lib.platforms.unix;
  };
})