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.3 KiB
Nix
44 lines
1.3 KiB
Nix
{ appimageTools, lib, fetchurl, makeDesktopItem }:
|
|
|
|
let
|
|
pname = "rambox";
|
|
version = "2.4.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ramboxapp/download/releases/download/v${version}/Rambox-${version}-linux-x64.AppImage";
|
|
hash = "sha256-ndFv5rNTWyqrGGC8t1JNR+bQC0Jsit4I9p4ng7h/gcU=";
|
|
};
|
|
|
|
desktopItem = (makeDesktopItem {
|
|
desktopName = "Rambox";
|
|
name = pname;
|
|
exec = "rambox";
|
|
icon = pname;
|
|
categories = [ "Network" ];
|
|
});
|
|
|
|
appimageContents = appimageTools.extract {
|
|
inherit pname version src;
|
|
};
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
mkdir -p $out/share/applications $out/share/icons/hicolor/256x256/apps
|
|
install -Dm644 ${appimageContents}/usr/share/icons/hicolor/256x256/apps/rambox*.png $out/share/icons/hicolor/256x256/apps/${pname}.png
|
|
install -Dm644 ${desktopItem}/share/applications/* $out/share/applications
|
|
'';
|
|
|
|
extraPkgs = pkgs: [ pkgs.procps ];
|
|
|
|
meta = with lib; {
|
|
description = "Workspace Simplifier - a cross-platform application organizing web services into Workspaces similar to browser profiles";
|
|
homepage = "https://rambox.app";
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ nazarewk ];
|
|
platforms = [ "x86_64-linux" ];
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
}
|