nixpkgs/pkgs/by-name/co/codux/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1002 B
Nix
Raw Normal View History

2023-06-18 06:10:20 +00:00
{
lib,
appimageTools,
fetchurl,
}:
let
pname = "codux";
2024-11-26 08:17:07 +00:00
version = "15.37.3";
2023-06-18 06:10:20 +00:00
src = fetchurl {
url = "https://github.com/wixplosives/codux-versions/releases/download/${version}/Codux-${version}.x86_64.AppImage";
2024-11-26 08:17:07 +00:00
hash = "sha256-SY2UmagOKdqbeWd6a/cUO9t3l8qjUy755YrhOBu8oi0=";
2023-06-18 06:10:20 +00:00
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 rec {
inherit pname version src;
extraInstallCommands = ''
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 = "Visual IDE for React";
homepage = "https://www.codux.com";
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
2023-09-03 01:42:04 +00:00
maintainers = with maintainers; [
dit7ya
kashw2
];
2023-11-27 01:17:53 +00:00
mainProgram = "codux";
2023-06-18 06:10:20 +00:00
};
}