nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 appimageTools,
4 fetchurl,
5}:
6
7let
8 pname = "codux";
9 version = "15.42.0";
10
11 src = fetchurl {
12 url = "https://github.com/wixplosives/codux-versions/releases/download/${version}/Codux-${version}.x86_64.AppImage";
13 hash = "sha256-rD0yXZAEUcPtxWlWuZD77gjw6JlcUvBsaDYGj+NgLss=";
14 };
15
16 appimageContents = appimageTools.extractType2 { inherit pname version src; };
17in
18
19appimageTools.wrapType2 {
20 inherit pname version src;
21
22 extraInstallCommands = ''
23 install -m 444 -D ${appimageContents}/codux.desktop -t $out/share/applications
24 cp -r ${appimageContents}/usr/share/icons $out/share
25 substituteInPlace $out/share/applications/codux.desktop --replace 'Exec=AppRun' 'Exec=codux'
26 '';
27
28 meta = {
29 description = "Visual IDE for React";
30 homepage = "https://www.codux.com";
31 license = lib.licenses.unfree;
32 platforms = [ "x86_64-linux" ];
33 maintainers = with lib.maintainers; [
34 dit7ya
35 kashw2
36 ];
37 mainProgram = "codux";
38 };
39}