nixpkgs/pkgs/tools/misc/keychain/default.nix
Ryan Mulligan a6bb0ff550 keychain: 2.8.3 -> 2.8.5
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/keychain -h` got 0 exit code
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/keychain --help` got 0 exit code
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/keychain help` got 0 exit code
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/keychain -V` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/keychain --version` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/keychain version` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/keychain -h` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/keychain --help` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/keychain help` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/.keychain-wrapped -h` got 0 exit code
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/.keychain-wrapped --help` got 0 exit code
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/.keychain-wrapped help` got 0 exit code
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/.keychain-wrapped -V` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/.keychain-wrapped --version` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/.keychain-wrapped version` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/.keychain-wrapped -h` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/.keychain-wrapped --help` and found version 2.8.5
- ran `/nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5/bin/.keychain-wrapped help` and found version 2.8.5
- found 2.8.5 with grep in /nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5
- found 2.8.5 in filename of file in /nix/store/455vx6ibapfgpy0n34j3y0qpd53v2zn2-keychain-2.8.5

cc "@sigma"
2018-02-26 19:42:56 -08:00

44 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, makeWrapper, coreutils, openssh, gnupg
, perl, procps, gnugrep, gawk, findutils, gnused
, withProcps ? stdenv.isLinux }:
stdenv.mkDerivation rec {
name = "keychain-${version}";
version = "2.8.5";
src = fetchFromGitHub {
owner = "funtoo";
repo = "keychain";
rev = "${version}";
sha256 = "1bkjlg0a2bbdjhwp37ci1rwikvrl4s3xlbf2jq2z4azc96dr83mj";
};
buildInputs = [ makeWrapper perl ];
installPhase = ''
mkdir -p $out/{bin,share/man/man1}
cp keychain $out/bin/keychain
cp keychain.1 $out/share/man/man1
wrapProgram $out/bin/keychain \
--prefix PATH ":" "${coreutils}/bin" \
--prefix PATH ":" "${openssh}/bin" \
--prefix PATH ":" "${gnupg}/bin" \
--prefix PATH ":" "${gnugrep}/bin" \
--prefix PATH ":" "${gnused}/bin" \
--prefix PATH ":" "${findutils}/bin" \
--prefix PATH ":" "${gawk}/bin" \
${if withProcps then ("--prefix PATH \":\" ${procps}/bin") else ""}
'';
meta = {
description = "Keychain management tool";
homepage = https://www.funtoo.org/Keychain;
license = stdenv.lib.licenses.gpl2;
# other platforms are untested (AFAIK)
platforms =
with stdenv.lib;
platforms.linux ++ platforms.darwin;
maintainers = with stdenv.lib.maintainers; [ sigma ];
};
}