diff options
author | Khushraj Rathod <khushraj.rathod@gmail.com> | 2022-05-26 15:06:55 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 15:06:55 +0530 |
commit | 94026f2b20855f921e7cbcfbf394f0552a9f391a (patch) | |
tree | ef3f4a0dbcb91acc2b73047b276bd2af7b42d660 /pkgs/development/web/bootstrap-studio | |
parent | 84c3b4f9859770fd411f19a654a8b515dce55ce6 (diff) |
bootstrap-studio: Use pname and version without declaring name
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/web/bootstrap-studio')
-rw-r--r-- | pkgs/development/web/bootstrap-studio/default.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/web/bootstrap-studio/default.nix b/pkgs/development/web/bootstrap-studio/default.nix index 34b169b88c6f8..988c279814606 100644 --- a/pkgs/development/web/bootstrap-studio/default.nix +++ b/pkgs/development/web/bootstrap-studio/default.nix @@ -3,19 +3,17 @@ 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; }; + appimageContents = appimageTools.extractType2 { inherit pname version src; }; in appimageTools.wrapType2 { inherit pname version src; extraInstallCommands = '' - mv $out/bin/${name} $out/bin/${pname} + mv $out/bin/${pname}-${version} $out/bin/${pname} install -m 444 -D ${appimageContents}/bstudio.desktop -t $out/share/applications |