diff --git a/pkgs/by-name/ug/ugdb/package.nix b/pkgs/by-name/ug/ugdb/package.nix new file mode 100644 index 000000000000..89a62cdd16f7 --- /dev/null +++ b/pkgs/by-name/ug/ugdb/package.nix @@ -0,0 +1,40 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + + pkg-config, + + oniguruma, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "ugdb"; + version = "0.1.12"; + + src = fetchFromGitHub { + owner = "ftilde"; + repo = "ugdb"; + tag = finalAttrs.version; + hash = "sha256-6mlvr/2hqwu5Zoo9E2EfOmyg0yEGBi4jk3BsRZ+zkN8="; + }; + + buildInputs = [ oniguruma ]; + nativeBuildInputs = [ pkg-config ]; + + cargoHash = "sha256-+J4gwjQXB905yk4b2GwpamXO/bHpwqMxw6GsnusbJKU="; + + RUSTONIG_SYSTEM_LIBONIG = 1; + + # Upstream has a failing test :< + doCheck = false; + + meta = with lib; { + description = "Alternative TUI for gdb"; + homepage = "https://github.com/ftilde/ugdb"; + changelog = "https://github.com/ftilde/ugdb/blob/master/CHANGELOG.md"; + license = licenses.mit; + maintainers = [ maintainers.justdeeevin ]; + mainProgram = "ugdb"; + platforms = platforms.unix; + }; +})