2014-09-23 07:05:12 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, callPackage, gnupg, utillinux }:
|
2014-09-22 21:52:24 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
2015-04-05 16:30:08 +01:00
|
|
|
nodePackages = callPackage (import ../../../top-level/node-packages.nix) {
|
2014-09-22 21:52:24 +01:00
|
|
|
neededNatives = [] ++ optional (stdenv.isLinux) utillinux;
|
|
|
|
self = nodePackages;
|
|
|
|
generated = ./package.nix;
|
|
|
|
};
|
|
|
|
|
|
|
|
in nodePackages.buildNodePackage rec {
|
2015-04-26 16:11:02 +01:00
|
|
|
name = "keybase-${version}";
|
|
|
|
version = "0.7.8";
|
2014-09-22 21:52:24 +01:00
|
|
|
|
|
|
|
src = [(fetchurl {
|
|
|
|
url = "https://github.com/keybase/node-client/archive/v${version}.tar.gz";
|
2015-04-26 16:11:02 +01:00
|
|
|
sha256 = "1ak27bd7jwyss85i7plnfr5al33ykfifqknncyx1ir2r2ldagzc7";
|
2014-09-22 21:52:24 +01:00
|
|
|
})];
|
|
|
|
|
|
|
|
deps = (filter (v: nixType v == "derivation") (attrValues nodePackages));
|
2014-09-23 07:05:12 +01:00
|
|
|
buildInputs = [ makeWrapper gnupg ];
|
2014-09-22 21:52:24 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/keybase" --set NODE_PATH "$out/lib/node_modules/keybase/node_modules/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.names = ["keybase"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "CLI for keybase.io written in/for Node.js";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://keybase.io/docs/command_line;
|
|
|
|
maintainers = with maintainers; [manveru];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|