mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
37 lines
915 B
Nix
37 lines
915 B
Nix
{ fetchFromGitHub
|
|
, lib, stdenv
|
|
, perl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "doona";
|
|
version = "unstable-2019-03-08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wireghoul";
|
|
repo = pname;
|
|
rev = "master";
|
|
sha256 = "0x9irwrw5x2ia6ch6gshadrlqrgdi1ivkadmr7j4m75k04a7nvz1";
|
|
};
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -r ${src}/bedmod $out/bin/bedmod
|
|
cp ${src}/doona.pl $out/bin/doona
|
|
chmod +x $out/bin/doona
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/wireghoul/doona";
|
|
description = "A fork of the Bruteforce Exploit Detector Tool (BED)";
|
|
longDescription = ''
|
|
A fork of the Bruteforce Exploit Detector Tool (BED).
|
|
BED is a program which is designed to check daemons for potential buffer overflows, format string bugs etc.
|
|
'';
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ pamplemousse ];
|
|
};
|
|
}
|