Skip to content

Commit

Permalink
Merge pull request NixOS#312388 from fabaff/ruler-refactor
Browse files Browse the repository at this point in the history
ruler: refactor
  • Loading branch information
fabaff authored May 23, 2024
2 parents 3b188c7 + 07f9f35 commit 372105c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions pkgs/tools/security/ruler/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildGoModule
, fetchFromGitHub
{
lib,
buildGoModule,
fetchFromGitHub,
}:

buildGoModule rec {
Expand All @@ -9,17 +10,24 @@ buildGoModule rec {

src = fetchFromGitHub {
owner = "sensepost";
repo = pname;
rev = version;
repo = "ruler";
rev = "refs/tags/${version}";
hash = "sha256-cEYpK1LB9b65xr6MCMax1vUtSWefjJdXNs4sPgx65d0=";
};

vendorHash = "sha256-ITd3cvZmRBWK3922dDRvNHNH8KzHoVfIQI6S318ibxA=";

ldflags = [
"-w"
"-s"
];

meta = with lib; {
description = "Tool to abuse Exchange services";
homepage = "https://github.com/sensepost/ruler";
changelog = "https://github.com/sensepost/ruler/releases/tag/${version}";
license = with licenses; [ cc-by-nc-40 ];
maintainers = with maintainers; [ fab ];
mainProgram = "ruler";
};
}

0 comments on commit 372105c

Please sign in to comment.