about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/my/myanon/package.nix
blob: c1f61dbff333ed7949cc69667751b5c2adba168a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, flex
, bison
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "myanon";
  version = "0.5";

  src = fetchFromGitHub {
    owner = "ppomes";
    repo = "myanon";
    rev = "refs/tags/v${finalAttrs.version}";
    hash = "sha256-tTGr8bTxZc75GYhpJ0uzpkPtMB3r/DXRMNqSlG+1eaA=";
  };

  nativeBuildInputs = [ autoreconfHook flex bison ];

  meta = {
    description = "Myanon is a mysqldump anonymizer, reading a dump from stdin, and producing on the fly an anonymized version to stdout";
    homepage = "https://ppomes.github.io/myanon/";
    license = lib.licenses.bsd3;
    mainProgram = "myanon";
    platforms = lib.platforms.unix;
  };
})