acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / mm / mmv / package.nix
blob3c32c830f44b873b2480093af13473612ee1b1f6
1 { lib, stdenv, fetchFromGitHub, pkg-config, gengetopt, m4, gnupg
2 , git, perl, autoconf, automake, help2man }:
4 stdenv.mkDerivation rec {
5   pname = "mmv";
6   version = "2.8";
8   src = fetchFromGitHub {
9     owner = "rrthomas";
10     repo = "mmv";
11     rev = "v${version}";
12     hash = "sha256-2RxVGSanuSSNzKX5Hgo7QelfGmaG9wF0fvklqrrGszg=";
13     fetchSubmodules = true;
14   };
16   preConfigure = ''
17     ./bootstrap
18   '';
20   nativeBuildInputs = [ gengetopt m4 git gnupg perl autoconf automake help2man pkg-config ];
22   enableParallelBuilding = true;
24   env = lib.optionalAttrs stdenv.cc.isClang {
25     NIX_CFLAGS_COMPILE = toString [
26       "-Wno-error=implicit-function-declaration"
27       "-Wno-error=implicit-int"
28       "-Wno-error=int-conversion"
29     ];
30   };
32   meta = {
33     homepage = "https://github.com/rrthomas/mmv";
34     description = "Utility for wildcard renaming, copying, etc";
35     license = lib.licenses.gpl3Plus;
36     platforms = lib.platforms.all;
37     maintainers = with lib.maintainers; [ siraben ];
38   };