From 49231056f93f90709e8496df0d05edb172775b51 Mon Sep 17 00:00:00 2001 From: kashw2 Date: Wed, 17 Apr 2024 11:39:32 +1000 Subject: [PATCH] responsively-app: init at 1.15.0 --- pkgs/by-name/re/responsively-app/package.nix | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/re/responsively-app/package.nix diff --git a/pkgs/by-name/re/responsively-app/package.nix b/pkgs/by-name/re/responsively-app/package.nix new file mode 100644 index 0000000000000..bcceee1f6f719 --- /dev/null +++ b/pkgs/by-name/re/responsively-app/package.nix @@ -0,0 +1,38 @@ +{ + lib, + fetchurl, + appimageTools, +}: + +appimageTools.wrapType2 rec { + pname = "responsively-app"; + version = "1.15.0"; + + src = fetchurl { + url = "https://github.com/responsively-org/responsively-app-releases/releases/download/v${version}/ResponsivelyApp-${version}.AppImage"; + hash = "sha256-BkljY8Il45A2JbsLgQbjsxCy0lnFZvtpc5HzvI1nwWk="; + }; + + appimageContents = appimageTools.extract { + inherit pname version src; + }; + + extraInstallCommands = '' + install -m 444 -D ${appimageContents}/responsivelyapp.desktop $out/share/applications/responsivelyapp.desktop + install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/responsivelyapp.png \ + $out/share/icons/hicolor/512x512/apps/responsivelyapp.png + substituteInPlace $out/share/applications/responsivelyapp.desktop \ + --replace-fail 'Exec=AppRun' 'Exec=${pname}' + ''; + + meta = { + description = "Modified web browser that helps in responsive web development"; + mainProgram = "responsively-desktop"; + homepage = "https://responsively.app/"; + changelog = "https://github.com/responsively-org/responsively-app/releases/tag/v${version}"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ kashw2 ]; + platforms = [ "x86_64-linux" ]; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +}