1{
2 lib,
3 stdenv,
4 autoreconfHook,
5 fetchFromGitHub,
6 pkg-config,
7 talloc,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "libasn1c";
12 version = "0.9.38";
13
14 src = fetchFromGitHub {
15 owner = "osmocom";
16 repo = "libasn1c";
17 rev = version;
18 hash = "sha256-cnXcUvP6WwHVvpdsIVsMkizlLyg9KMwVj8XYX/nIfic=";
19 };
20
21 postPatch = ''
22 echo "${version}" > .tarball-version
23 '';
24
25 nativeBuildInputs = [
26 autoreconfHook
27 pkg-config
28 ];
29
30 buildInputs = [
31 talloc
32 ];
33
34 enableParallelBuilding = true;
35
36 meta = with lib; {
37 description = "Runtime library of Lev Walkin's asn1c split out as separate library";
38 homepage = "https://github.com/osmocom/libasn1c/";
39 license = licenses.bsd2;
40 platforms = platforms.linux;
41 maintainers = [ ];
42 };
43}