at master 43 lines 957 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitea, 5 jdupes, 6 fixDarwinDylibNames, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "libjodycode"; 11 version = "4.0.1"; 12 13 outputs = [ 14 "out" 15 "man" 16 "dev" 17 ]; 18 19 src = fetchFromGitea { 20 domain = "codeberg.org"; 21 owner = "jbruchon"; 22 repo = "libjodycode"; 23 rev = "v${finalAttrs.version}"; 24 hash = "sha256-9YdDw7xIuAArQtPYhDeT4AhSwi5fhVJeBl3R+J7PaCw="; 25 }; 26 27 nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; 28 29 env.PREFIX = placeholder "out"; 30 31 passthru.tests = { 32 inherit jdupes; 33 }; 34 35 meta = { 36 description = "Shared code used by several utilities written by Jody Bruchon"; 37 homepage = "https://codeberg.org/jbruchon/libjodycode"; 38 changelog = "https://codeberg.org/jbruchon/libjodycode/src/branch/master/CHANGES.txt"; 39 license = lib.licenses.mit; 40 platforms = lib.platforms.all; 41 maintainers = with lib.maintainers; [ pbsds ]; 42 }; 43})