diff options
author | Khushraj Rathod <khushraj.rathod@gmail.com> | 2022-05-02 22:40:03 +0530 |
---|---|---|
committer | Khushraj Rathod <khushraj.rathod@gmail.com> | 2022-05-17 22:25:07 +0530 |
commit | cf608e1b5d5657a61d6678bdec809e30edb278ee (patch) | |
tree | 7a77bc5adf7fd17a353c107dd4daf535e980b6a8 /pkgs/development/web/bootstrap-studio | |
parent | 1e8462800c47345a2903228f1e42712ef677d2c6 (diff) | |
download | nixlib-cf608e1b5d5657a61d6678bdec809e30edb278ee.tar nixlib-cf608e1b5d5657a61d6678bdec809e30edb278ee.tar.gz nixlib-cf608e1b5d5657a61d6678bdec809e30edb278ee.tar.bz2 nixlib-cf608e1b5d5657a61d6678bdec809e30edb278ee.tar.lz nixlib-cf608e1b5d5657a61d6678bdec809e30edb278ee.tar.xz nixlib-cf608e1b5d5657a61d6678bdec809e30edb278ee.tar.zst nixlib-cf608e1b5d5657a61d6678bdec809e30edb278ee.zip |
bootstrap-studio: init at 6.0.1
Diffstat (limited to 'pkgs/development/web/bootstrap-studio')
-rw-r--r-- | pkgs/development/web/bootstrap-studio/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/web/bootstrap-studio/default.nix b/pkgs/development/web/bootstrap-studio/default.nix new file mode 100644 index 000000000000..34b169b88c6f --- /dev/null +++ b/pkgs/development/web/bootstrap-studio/default.nix @@ -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" ]; + }; +} |