summary refs log tree commit diff
path: root/pkgs/development/libraries/libbencodetools/default.nix
blob: 42e6fb9f4ede8579568d0513860302cb9d55e28d (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
{ stdenv, lib, fetchFromGitLab
}:

stdenv.mkDerivation rec {
  pname = "libbencodetools";
  version = "unstable-2021-04-15";

  src = fetchFromGitLab {
    owner = "heikkiorsila";
    repo = "bencodetools";
    rev = "1ab11f6509a348975e8aec829d7abbf2f8e9b7d1";
    sha256 = "1i2dgvxxwj844yn45hnfx3785ljbvbkri0nv0jx51z4i08w7cz0h";
  };

  postPatch = ''
    patchShebangs .
  '';

  configureFlags = [
    "--without-python"
  ];

  meta = with lib; {
    description = "Collection of tools for manipulating bencoded data";
    homepage = "https://gitlab.com/heikkiorsila/bencodetools";
    license = licenses.bsd2;
    maintainers = with maintainers; [ OPNA2608 ];
    mainProgram = "bencat";
    platforms = platforms.unix;
  };
}