summary refs log tree commit diff
path: root/pkgs/by-name/lc/lcab/package.nix
blob: 54f6159ab15dbbdef0aedc795a96fa720e10631c (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
{ lib
, stdenv
, fetchurl
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "lcab";
  version = "1.0b12";

  src = fetchurl {
    # Original site is no longer available
    url = "http://deb.debian.org/debian/pool/main/l/lcab/lcab_${finalAttrs.version}.orig.tar.gz";
    hash = "sha256-Bl8sF5O2XyhHHA9xt88SCnBk8o0cRLB8q/SewOl/H8g=";
  };

  patches = [
    # Fix version number
    (fetchurl {
      url = "https://salsa.debian.org/debian/lcab/-/raw/f72d6db6504123bd124b1a4be21ead8cc1535c9e/debian/patches/20-version.patch";
      hash = "sha256-Yb6E8nQVdicmjcGnxR7HHdsd7D+ThXk02UHiaB+PLvE=";
    })
  ];

  meta = with lib; {
    description = "Create cabinet (.cab) archives";
    homepage = "http://ohnopub.net/~ohnobinki/lcab";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ emilytrau ];
    platforms = platforms.unix;
    mainProgram = "lcab";
  };
})