2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, gengetopt, m4, gnupg
|
2024-09-19 14:19:46 +00:00
|
|
|
, git, perl, autoconf, automake, help2man }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mmv";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "2.8";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rrthomas";
|
|
|
|
repo = "mmv";
|
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-2RxVGSanuSSNzKX5Hgo7QelfGmaG9wF0fvklqrrGszg=";
|
2021-05-20 23:08:51 +00:00
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
preConfigure = ''
|
|
|
|
./bootstrap
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [ gengetopt m4 git gnupg perl autoconf automake help2man pkg-config ];
|
2024-09-19 14:19:46 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
|
|
"-Wno-error=implicit-function-declaration"
|
|
|
|
"-Wno-error=implicit-int"
|
2024-04-21 15:54:59 +00:00
|
|
|
"-Wno-error=int-conversion"
|
2023-11-16 04:20:00 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/rrthomas/mmv";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utility for wildcard renaming, copying, etc";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ siraben ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|