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.
40 lines
1.3 KiB
Nix
40 lines
1.3 KiB
Nix
{ lib, fetchurl, appimageTools }:
|
|
|
|
let
|
|
pname = "polypane";
|
|
version = "22.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/firstversionist/${pname}/releases/download/v${version}/${pname}-${version}.AppImage";
|
|
name = "${pname}-${version}.AppImage";
|
|
sha256 = "sha256-m1alnK5p5RVn/m4tFB2BG/sFNOGBjtJPrE/pJhLa5N0=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
inherit pname src version;
|
|
};
|
|
in appimageTools.wrapType2 {
|
|
inherit pname src version;
|
|
|
|
extraPkgs = pkgs: [ pkgs.bash ];
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Browser with unified devtools targeting responsability and accessibility";
|
|
longDescription = ''
|
|
The stand-alone browser for ambitious developers that want to build responsive,
|
|
accessible and performant websites in a fraction of the time it takes with other browsers.
|
|
'';
|
|
homepage = "https://polypane.app/";
|
|
maintainers = with maintainers; [ zoedsoupe ];
|
|
platforms = [ "x86_64-linux" ];
|
|
changelog = "https://polypane.app/docs/changelog/";
|
|
license = licenses.unfree;
|
|
};
|
|
}
|