depot/third_party/nixpkgs/pkgs/development/libraries/libjodycode/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +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 ];
};
})