about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/bu
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/bu')
-rw-r--r--nixpkgs/pkgs/by-name/bu/bulloak/package.nix29
-rw-r--r--nixpkgs/pkgs/by-name/bu/butt/package.nix49
2 files changed, 78 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/bu/bulloak/package.nix b/nixpkgs/pkgs/by-name/bu/bulloak/package.nix
new file mode 100644
index 000000000000..f9bd96f56538
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/bu/bulloak/package.nix
@@ -0,0 +1,29 @@
+{ lib
+, fetchFromGitHub
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "bulloak";
+  version = "0.5.4";
+
+  src = fetchFromGitHub {
+    owner = "alexfertel";
+    repo = "bulloak";
+    rev = "v${version}";
+    hash = "sha256-lUTMQMBqCezuUsfvuYSCBFsokoY3bPoJDGWL90EjVqY=";
+  };
+
+  cargoHash = "sha256-LH96e/dBbv4J7g7wzh3/vL+PzZn779zUMBgio6w3rJw=";
+
+  # tests run in CI on the source repo
+  doCheck = false;
+
+  meta = with lib; {
+    description = "A Solidity test generator based on the Branching Tree Technique";
+    homepage = "https://github.com/alexfertel/bulloak";
+    license = with licenses; [ mit asl20 ];
+    mainProgram = "bulloak";
+    maintainers = with maintainers; [ beeb ];
+  };
+}
diff --git a/nixpkgs/pkgs/by-name/bu/butt/package.nix b/nixpkgs/pkgs/by-name/bu/butt/package.nix
new file mode 100644
index 000000000000..6f2e7729797c
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/bu/butt/package.nix
@@ -0,0 +1,49 @@
+{ lib, stdenv, fetchurl, pkg-config, fltk13, portaudio, lame, libvorbis, libogg
+, flac, libopus, libsamplerate, fdk_aac, dbus, openssl, curl }:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "butt";
+  version = "0.1.40";
+
+  src = fetchurl {
+    url = "https://danielnoethen.de/butt/release/${finalAttrs.version}/butt-${finalAttrs.version}.tar.gz";
+    hash = "sha256-wag177UIQ6YpBkJ5XQlxYtTdBFFNO5q+BLD/CiUkGoA=";
+  };
+
+  postPatch = ''
+    # remove advertising
+    substituteInPlace src/FLTK/flgui.cpp \
+      --replace 'idata_radio_co_badge, 124, 61, 4,' 'nullptr, 0, 0, 0,'
+  '';
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [
+    fltk13
+    portaudio
+    lame
+    libvorbis
+    libogg
+    flac
+    libopus
+    libsamplerate
+    fdk_aac
+    dbus
+    openssl
+    curl
+  ];
+
+  postInstall = ''
+    cp -r usr/share $out/
+  '';
+
+  meta = {
+    changelog = "https://danielnoethen.de/butt/Changelog.html";
+    description =
+      "butt (broadcast using this tool) is an easy to use, multi OS streaming tool";
+    homepage = "https://danielnoethen.de/butt/";
+    license = lib.licenses.gpl2;
+    maintainers = with lib.maintainers; [ ehmry ];
+    mainProgram = "butt";
+  };
+})