mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 10:14:09 +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.
42 lines
1001 B
Nix
42 lines
1001 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, waf-tester
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "waf-tester";
|
|
version = "0.6.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jreisinger";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-UPviooQNGRVwf/bTz9ApedJDAGeCvh9iD1HXFOQXPcw=";
|
|
};
|
|
|
|
vendorHash = "sha256-HOYHrR1LtVcXMKFHPaA7PYH4Fp9nhqal2oxYTq/i4/8=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = waf-tester;
|
|
command = "waf-tester -version";
|
|
version = "waf-tester ${version}, commit none, built at unknown by unknown";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Tool to test Web Application Firewalls (WAFs)";
|
|
mainProgram = "waf-tester";
|
|
homepage = "https://github.com/jreisinger/waf-tester";
|
|
changelog = "https://github.com/jreisinger/waf-tester/releases/tag/v${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|