diff options
author | Varun Narravula <varun@snare.dev> | 2023-09-30 22:44:47 -0700 |
---|---|---|
committer | Varun Narravula <varun@snare.dev> | 2023-10-04 01:29:25 -0700 |
commit | 30d510d152decdd46a54151ab3cf0bbb6d829658 (patch) | |
tree | 8205fe123362c25c0994471e3424c9a2ab832f6a /pkgs | |
parent | dd8af63ff7683947008161126020971ddc5091d6 (diff) |
bruno: init at 0.17.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/br/bruno/package.nix | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/by-name/br/bruno/package.nix b/pkgs/by-name/br/bruno/package.nix new file mode 100644 index 0000000000000..4dfa1375ef7a2 --- /dev/null +++ b/pkgs/by-name/br/bruno/package.nix @@ -0,0 +1,61 @@ +{ lib +, stdenv +, fetchurl +, autoPatchelfHook +, dpkg +, wrapGAppsHook +, alsa-lib +, gtk3 +, mesa +, nspr +, nss +, systemd +, nix-update-script +}: + +stdenv.mkDerivation rec { + pname = "bruno"; + version = "0.17.0"; + + src = fetchurl { + url = "https://github.com/usebruno/bruno/releases/download/v${version}/bruno_${version}_amd64_linux.deb"; + hash = "sha256-4FF9SEgWuIPQSarOBTaEvgdgRTkR1caRYr/bjfFmTLE="; + }; + + nativeBuildInputs = [ autoPatchelfHook dpkg wrapGAppsHook ]; + + buildInputs = [ + alsa-lib + gtk3 + mesa + nspr + nss + ]; + + runtimeDependencies = [ (lib.getLib systemd) ]; + + installPhase = '' + runHook preInstall + mkdir -p "$out/bin" + cp -R opt $out + cp -R "usr/share" "$out/share" + ln -s "$out/opt/Bruno/bruno" "$out/bin/bruno" + chmod -R g-w "$out" + runHook postInstall + ''; + + postFixup = '' + substituteInPlace "$out/share/applications/bruno.desktop" \ + --replace "/opt/Bruno/bruno" "$out/bin/bruno" + ''; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "Open-source IDE For exploring and testing APIs."; + homepage = "https://www.usebruno.com"; + license = licenses.mit; + maintainers = with maintainers; [ water-sucks lucasew ]; + platforms = [ "x86_64-linux" ]; + }; +} |