571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
28 lines
698 B
Nix
28 lines
698 B
Nix
{ lib, fetchFromGitHub, stdenv }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "passh";
|
|
version = "2020-03-18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "clarkwang";
|
|
repo = "passh";
|
|
rev = "7112e667fc9e65f41c384f89ff6938d23e86826c";
|
|
sha256 = "1g0rx94vqg36kp46f8v4x6jcmvdk85ds6bkrpayq772hbdm1b5z5";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ${finalAttrs.pname} $out/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/clarkwang/passh";
|
|
description = "Sshpass alternative for non-interactive ssh auth";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.lovesegfault ];
|
|
mainProgram = finalAttrs.pname;
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|