mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
bf7d185702
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.
42 lines
922 B
Nix
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 ];
|
|
};
|
|
})
|