1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/applications/misc/keybase/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 ../../../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 {
name = "keybase-${version}";
2015-11-01 11:56:25 +00:00
version = "0.8.22";
2014-09-22 21:52:24 +01:00
src = [(fetchurl {
url = "https://github.com/keybase/node-client/archive/v${version}.tar.gz";
2015-11-01 11:56:25 +00:00
sha256 = "1dvwz2iqcybd687hp6zbw6lkpx27vp8ah6kk251147vxvwfjb422";
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 = platforms.linux;
2014-09-22 21:52:24 +01:00
};
}