2022-06-16 17:23:12 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "bootstrap-studio";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "6.4.5";
|
2022-06-16 17:23:12 +00:00
|
|
|
src = fetchurl {
|
2023-08-22 20:05:09 +00:00
|
|
|
url = "https://releases.bootstrapstudio.io/${version}/Bootstrap%20Studio.AppImage";
|
|
|
|
sha256 = "sha256-kCMqDNRC3H3WBpDJCBXBxvWRuiGCrZ7gRGghXiGtGq8=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
|
|
|
|
|
|
|
install -m 444 -D ${appimageContents}/bstudio.desktop -t $out/share/applications
|
|
|
|
|
|
|
|
substituteInPlace $out/share/applications/bstudio.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
|
|
|
|
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/0x0/apps/bstudio.png \
|
|
|
|
$out/share/icons/hicolor/512x512/apps/bstudio.png
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Drag-and-drop designer for bootstrap";
|
|
|
|
homepage = "https://bootstrapstudio.io/";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ khushraj ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|