summary refs log tree commit diff
path: root/pkgs/os-specific/linux/open-isns/default.nix
blob: 2ef08cd13ce22702b6ad28fcfb90f497cd9aa52e (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
{ stdenv, openssl, fetchFromGitHub }:
stdenv.mkDerivation rec {
  name = "open-isns-${version}";
  version = "0.95";

  src = fetchFromGitHub {
    owner = "gonzoleeman";
    repo = "open-isns";
    rev = "v${version}";
    sha256 = "1c2x3yf9806gbjsw4xi805rfhyxk353a3whqvpccz8dwas6jajwh";
  };

  propagatedBuildInputs = [ openssl ];
  outputs = ["out" "lib" ];
  outputInclude = "lib";

  installFlags = "etcdir=$(out)/etc vardir=$(out)/var/lib/isns";
  installTargets = "install install_hdrs install_lib";

  meta = {
    description = "iSNS server and client for Linux";
    license = stdenv.lib.licenses.lgpl21;
    homepage = https://github.com/gonzoleeman/open-isns;
  };
}