nixpkgs/pkgs/by-name/do/doona/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

38 lines
944 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 = "Fork of the Bruteforce Exploit Detector Tool (BED)";
mainProgram = "doona";
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.gpl2Only;
maintainers = with maintainers; [ pamplemousse ];
};
}