summary refs log blame commit diff
path: root/pkgs/os-specific/linux/open-isns/default.nix
blob: 6a0273afbdd3e00160481c2e153bd514b3ea0bce (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                     
 
                         
                      
                   




                          
                                                                    


                                      
                            

                        

                                         

                                                                      




                                                        
                                           

    
{ stdenv, openssl, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "open-isns";
  version = "0.99";

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

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

  configureFlags = [ "--enable-shared" ];

  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;
    platforms = stdenv.lib.platforms.linux;
  };
}