2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitea,
|
|
|
|
jdupes,
|
|
|
|
fixDarwinDylibNames,
|
2024-01-13 08:15:51 +00:00
|
|
|
}:
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "libjodycode";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.1.1";
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"man"
|
|
|
|
"dev"
|
|
|
|
];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "jbruchon";
|
|
|
|
repo = "libjodycode";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-sVEa2gNvgRJK1Ycmv4inbViTBPQFjzcZ8XHlAdsNzOk=";
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
env.PREFIX = placeholder "out";
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit jdupes;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "Shared code used by several utilities written by Jody Bruchon";
|
2024-09-19 14:19:46 +00:00
|
|
|
homepage = "https://codeberg.org/jbruchon/libjodycode";
|
|
|
|
changelog = "https://codeberg.org/jbruchon/libjodycode/src/branch/master/CHANGES.txt";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ pbsds ];
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
2024-09-19 14:19:46 +00:00
|
|
|
})
|