mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ lib, fetchurl, appimageTools }:
|
|
|
|
let
|
|
pname = "bloomrpc";
|
|
version = "1.5.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/uw-labs/${pname}/releases/download/${version}/BloomRPC-${version}.AppImage";
|
|
name = "${pname}-${version}.AppImage";
|
|
hash = "sha512-PebdYDpcplPN5y3mRu1mG6CXenYfYvBXNLgIGEr7ZgKnR5pIaOfJNORSNYSdagdGDb/B1sxuKfX4+4f2cqgb6Q==";
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
inherit pname src version;
|
|
};
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname src version;
|
|
|
|
profile = ''
|
|
export LC_ALL=C.UTF-8
|
|
'';
|
|
|
|
extraInstallCommands = ''
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
|
|
install -m 444 -D ${appimageContents}/${pname}.png \
|
|
$out/share/icons/hicolor/512x512/apps/${pname}.png
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "GUI Client for GRPC Services";
|
|
longDescription = ''
|
|
Inspired by Postman and GraphQL Playground BloomRPC aims to provide the simplest
|
|
and most efficient developer experience for exploring and querying your GRPC services.
|
|
'';
|
|
homepage = "https://github.com/uw-labs/bloomrpc";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ zoedsoupe ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|