bootstrap-studio: init at 6.0.1

This commit is contained in:
Khushraj Rathod 2022-05-02 22:40:03 +05:30
parent 1e8462800c
commit cf608e1b5d
No known key found for this signature in database
GPG key ID: B77B2A40E7702F19
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ lib, fetchurl, appimageTools }:
let
pname = "bootstrap-studio";
version = "6.0.1";
name = "bootstrap-studio-${version}";
nameExecutable = pname;
src = fetchurl {
url = "https://bootstrapstudio.io/releases/desktop/${version}/Bootstrap%20Studio.AppImage";
sha256 = "sha256-piRqIB/bCF0IBZfXdlXrc7gmPTIUDbk8xhP7X5ozyWg=";
};
appimageContents = appimageTools.extractType2 { inherit name src; };
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
mv $out/bin/${name} $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" ];
};
}

View file

@ -253,6 +253,8 @@ with pkgs;
bingo = callPackage ../development/tools/bingo {};
bootstrap-studio = callPackage ../development/web/bootstrap-studio {};
breakpad = callPackage ../development/misc/breakpad { };
buf = callPackage ../development/tools/buf { };