2014-09-23 08:05:12 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, callPackage, gnupg, utillinux }:
|
2014-09-22 22:52:24 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
2015-04-05 17:30:08 +02:00
|
|
|
nodePackages = callPackage (import ../../../top-level/node-packages.nix) {
|
2014-09-22 22:52:24 +02:00
|
|
|
neededNatives = [] ++ optional (stdenv.isLinux) utillinux;
|
|
|
|
self = nodePackages;
|
|
|
|
generated = ./package.nix;
|
|
|
|
};
|
|
|
|
|
|
|
|
in nodePackages.buildNodePackage rec {
|
2015-04-26 17:11:02 +02:00
|
|
|
name = "keybase-${version}";
|
2016-02-06 12:51:26 +01:00
|
|
|
version = "0.8.25";
|
2014-09-22 22:52:24 +02:00
|
|
|
|
|
|
|
src = [(fetchurl {
|
|
|
|
url = "https://github.com/keybase/node-client/archive/v${version}.tar.gz";
|
2016-02-06 12:51:26 +01:00
|
|
|
sha256 = "1zc357hwh26lsg8ngj7iwjdmywyzk6fz3wxmcqq1qyp2927i4jz3";
|
2014-09-22 22:52:24 +02:00
|
|
|
})];
|
|
|
|
|
|
|
|
deps = (filter (v: nixType v == "derivation") (attrValues nodePackages));
|
2014-09-23 08:05:12 +02:00
|
|
|
buildInputs = [ makeWrapper gnupg ];
|
2014-09-22 22:52:24 +02: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];
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.linux;
|
2014-09-22 22:52:24 +02:00
|
|
|
};
|
|
|
|
}
|