about summary refs log tree commit diff
path: root/pkgs/tools/text/pn/default.nix
blob: ddb6e6ea1f888dfe7ace11e49ee6be60eeac4521 (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
{ lib, stdenv, fetchFromGitHub, cmake, libphonenumber, icu, protobuf }:

stdenv.mkDerivation rec {
  pname = "pn";
  version = "0.9.0";

  src = fetchFromGitHub {
    owner = "Orange-OpenSource";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-vRF9MPcw/hCreHVLD6QB7g1r0wQiZv1xrfzIHj1Yf9M=";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libphonenumber icu protobuf ];

  meta = with lib; {
    description = "Libphonenumber command-line wrapper";
    mainProgram = "pn";
    homepage = "https://github.com/Orange-OpenSource/pn";
    license = licenses.asl20;
    platforms = platforms.unix;
    maintainers = [ maintainers.McSinyx ];
  };
}