nixpkgs/pkgs/tools/misc/mmv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.0 KiB
Nix
Raw Normal View History

2021-03-16 12:43:47 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, gengetopt, m4, gnupg
, git, perl, autoconf, automake, help2man, boehmgc }:
stdenv.mkDerivation rec {
pname = "mmv";
2024-02-10 09:42:01 +00:00
version = "2.6";
2021-03-16 12:43:47 +00:00
src = fetchFromGitHub {
owner = "rrthomas";
repo = "mmv";
rev = "v${version}";
hash = "sha256-hYSTENSmkJP5rAemDyTzbzMKFrWYcMpsJDRWq43etTM=";
2021-03-16 12:43:47 +00:00
fetchSubmodules = true;
};
2021-03-16 12:43:47 +00:00
preConfigure = ''
./bootstrap
'';
2021-03-16 12:43:47 +00:00
nativeBuildInputs = [ gengetopt m4 git gnupg perl autoconf automake help2man pkg-config ];
buildInputs = [ boehmgc ];
2024-02-10 09:42:01 +00:00
enableParallelBuilding = true;
2023-11-08 18:39:31 +00:00
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-function-declaration"
"-Wno-error=implicit-int"
2024-02-10 09:42:01 +00:00
"-Wno-error=int-conversion"
2023-11-08 18:39:31 +00:00
];
};
meta = {
2021-03-16 12:43:47 +00:00
homepage = "https://github.com/rrthomas/mmv";
description = "Utility for wildcard renaming, copying, etc";
2021-03-16 12:43:47 +00:00
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ siraben ];
};
}