nixpkgs/pkgs/development/libraries/libjodycode/default.nix
Mohamed Gaber bf7d185702
libjodycode: fix on darwin by adding fixDarwinDylibNames
Packages dependent on `libjodycode` on macOS (read: `jdupes`) fail to launch because the dylib generated does not set an absolute install path. `fixDarwinDylibNames` rectifies this.
2024-08-29 12:40:50 +03:00

42 lines
922 B
Nix

{
lib,
stdenv,
fetchFromGitea,
jdupes,
fixDarwinDylibNames,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libjodycode";
version = "3.1.1";
outputs = [
"out"
"man"
"dev"
];
src = fetchFromGitea {
domain = "codeberg.org";
owner = "jbruchon";
repo = "libjodycode";
rev = "v${finalAttrs.version}";
hash = "sha256-sVEa2gNvgRJK1Ycmv4inbViTBPQFjzcZ8XHlAdsNzOk=";
};
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
env.PREFIX = placeholder "out";
passthru.tests = {
inherit jdupes;
};
meta = {
description = "Shared code used by several utilities written by Jody Bruchon";
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 ];
};
})