51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
|
{ lib
|
||
|
, stdenvNoCC
|
||
|
, fetchzip
|
||
|
, buildFHSEnv
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
package = stdenvNoCC.mkDerivation rec {
|
||
|
pname = "CoolTerm";
|
||
|
version = "2.1.1";
|
||
|
|
||
|
src = fetchzip {
|
||
|
url = "https://freeware.the-meiers.org/previous/CoolTermLinux64Bit${builtins.replaceStrings ["."] [""] version}.zip";
|
||
|
sha256 = "sha256-ly01SivP0gghEfNT1SvexOB5Zumo/cwiNtkirkG+ncU=";
|
||
|
};
|
||
|
|
||
|
buildCommand = ''
|
||
|
mkdir -p $out/opt/
|
||
|
cp -r $src $out/opt/CoolTerm
|
||
|
'';
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "";
|
||
|
longDescription = ''
|
||
|
'';
|
||
|
homepage = "https://freeware.the-meiers.org/";
|
||
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||
|
license = licenses.unfree;
|
||
|
maintainers = with maintainers; [ mlaga97 ];
|
||
|
platforms = [ "x86_64-linux" ];
|
||
|
};
|
||
|
};
|
||
|
in
|
||
|
|
||
|
buildFHSEnv {
|
||
|
inherit (package) pname meta;
|
||
|
runScript = "${package.outPath}/opt/CoolTerm/CoolTerm";
|
||
|
targetPkgs = pkgs: (with pkgs; [
|
||
|
libgcc
|
||
|
cairo
|
||
|
gtk3
|
||
|
libunwind
|
||
|
pango
|
||
|
atk
|
||
|
gtkd
|
||
|
glib
|
||
|
gdk-pixbuf
|
||
|
xorg.libX11
|
||
|
]);
|
||
|
}
|