nixpkgs/pkgs/by-name/br/bruno/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.3 KiB
Nix
Raw Normal View History

2023-10-01 05:44:47 +00:00
{ lib
, stdenv
, fetchurl
, autoPatchelfHook
, dpkg
, wrapGAppsHook
, alsa-lib
, gtk3
, mesa
, nspr
, nss
, systemd
, nix-update-script
}:
stdenv.mkDerivation rec {
pname = "bruno";
version = "1.5.1";
2023-10-01 05:44:47 +00:00
src = fetchurl {
url = "https://github.com/usebruno/bruno/releases/download/v${version}/bruno_${version}_amd64_linux.deb";
hash = "sha256-kJfS3yORwvh7rMGgDV5Bn2L7+7ZMa8ZBpRI1P5y+ShQ=";
2023-10-01 05:44:47 +00:00
};
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";
2023-10-01 05:44:47 +00:00
homepage = "https://www.usebruno.com";
license = licenses.mit;
2023-11-25 11:33:57 +00:00
maintainers = with maintainers; [ water-sucks lucasew kashw2 ];
2023-10-01 05:44:47 +00:00
platforms = [ "x86_64-linux" ];
2023-12-29 15:37:46 +00:00
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2023-10-01 05:44:47 +00:00
};
}