2022-05-02 18:10:03 +01:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "bootstrap-studio";
|
|
|
|
version = "6.0.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bootstrapstudio.io/releases/desktop/${version}/Bootstrap%20Studio.AppImage";
|
|
|
|
sha256 = "sha256-piRqIB/bCF0IBZfXdlXrc7gmPTIUDbk8xhP7X5ozyWg=";
|
|
|
|
};
|
2022-05-26 10:36:55 +01:00
|
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
2022-05-02 18:10:03 +01:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
2022-05-26 10:36:55 +01:00
|
|
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
2022-05-02 18:10:03 +01:00
|
|
|
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|