mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
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.
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, freerdp, openssl, libssh2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "medusa-unstable";
|
|
version = "2018-12-16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jmk-foofus";
|
|
repo = "medusa";
|
|
rev = "292193b3995444aede53ff873899640b08129fc7";
|
|
sha256 = "0njlz4fqa0165wdmd5y8lfnafayf3c4la0r8pf3hixkdwsss1509";
|
|
};
|
|
|
|
patches = [
|
|
# Pull upstream fix for -fno-common tollchains like gcc-10:
|
|
# https://github.com/jmk-foofus/medusa/pull/36
|
|
(fetchpatch {
|
|
name = "fno-common.patch";
|
|
url = "https://github.com/jmk-foofus/medusa/commit/a667656ad085b3eb95309932666c250d97a92767.patch";
|
|
sha256 = "01marqqhjd3qwar3ymp50y1h2im5ilgpaxk7wrc2kcxgmzvbdfxc";
|
|
})
|
|
];
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
configureFlags = [ "--enable-module-ssh=yes" ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ freerdp openssl libssh2 ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/jmk-foofus/medusa";
|
|
description = "Speedy, parallel, and modular, login brute-forcer";
|
|
mainProgram = "medusa";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ ];
|
|
};
|
|
}
|