nixpkgs/pkgs/applications/misc/keybase-node-client/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, makeWrapper, callPackage, gnupg, utillinux }:
2014-09-22 21:52:24 +01:00
with stdenv.lib;
let
nodePackages = callPackage (import <nixpkgs/pkgs/top-level/node-packages.nix>) {
neededNatives = [] ++ optional (stdenv.isLinux) utillinux;
self = nodePackages;
generated = ./package.nix;
};
in nodePackages.buildNodePackage rec {
name = "keybase-node-client-${version}";
2015-03-06 23:04:45 +00:00
version = "0.7.7";
2014-09-22 21:52:24 +01:00
src = [(fetchurl {
url = "https://github.com/keybase/node-client/archive/v${version}.tar.gz";
2015-03-06 23:04:45 +00:00
sha256 = "1p2plxz4lf5pbrvl5sql00lk459lnxcz7cxc4cdhfzc6h4ql425f";
2014-09-22 21:52:24 +01:00
})];
deps = (filter (v: nixType v == "derivation") (attrValues nodePackages));
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;
};
}