3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #238367 from dit7ya/codux

codux: init at 15.4.4
This commit is contained in:
Pol Dellaiera 2023-06-18 08:23:49 +02:00 committed by GitHub
commit 192011a33f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ lib
, appimageTools
, fetchurl
}:
let
pname = "codux";
version = "15.4.4";
src = fetchurl {
url = "https://github.com/wixplosives/codux-versions/releases/download/${version}/Codux-${version}.x86_64.AppImage";
sha256 = "sha256-6XLKXw+e/310mCQxM/X/kzok562vGjEhmF1eLfakB4Q=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 rec {
inherit pname version src;
extraInstallCommands = ''
mv $out/bin/${pname}-${version} $out/bin/${pname}
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
cp -r ${appimageContents}/usr/share/icons $out/share
substituteInPlace $out/share/applications/${pname}.desktop --replace 'Exec=AppRun' 'Exec=${pname}'
'';
meta = with lib; {
description = "A visual IDE for React";
homepage = "https://www.codux.com";
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ dit7ya ];
};
}

View file

@ -3322,6 +3322,8 @@ with pkgs;
codespell = callPackage ../development/tools/codespell { };
codux = callPackage ../applications/editors/codux { };
coolreader = libsForQt5.callPackage ../applications/misc/coolreader { };
corsair = with python3Packages; toPythonApplication corsair-scan;