mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 15:15:36 +00:00
ce8ce600ae
unix-tools.nix has a collection of tools that are commonly installed by default in Unix derivatives. This is intended to provide compatibility between macOS and Linux users. Three Linux-only derivations are provided for compatbility: - procps - utillinux - nettools More tools are also provided. Also: treewide: use unixtools Non-comprehensive replace of Linux-only procps and util-linux with 'unixtools'.
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, makeWrapper, coreutils, openssh, gnupg
|
|
, perl, procps, gnugrep, gawk, findutils, gnused }:
|
|
|
|
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" \
|
|
--prefix PATH ":" "${procps}/bin"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|