CoolTerm-flake/flake.nix

60 lines
1.4 KiB
Nix

{
description = "Test";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = { self, nixpkgs }: {
defaultPackage.x86_64-linux = with import nixpkgs {
system = "x86_64-linux";
}; stdenv.mkDerivation rec {
name = "coolterm";
version = "2.1.1";
src = pkgs.fetchzip {
url = "https://freeware.the-meiers.org/previous/CoolTermLinux64Bit211.zip";
sha256 = "sha256-ly01SivP0gghEfNT1SvexOB5Zumo/cwiNtkirkG+ncU=";
};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
libgcc
cairo
gtk3
libunwind
];
sourceRoot = ".";
#preFixup = let libPath = lib.makeLibraryPath [
# cairo
# libgcc
#]; in ''
# patchelf \
# --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
# --set-rpath "${libPath}" \
# $out/bin/CoolTerm
#'';
installPhase = ''
runHook preInstall
for i in `ls -1 "./source/CoolTerm Libs/"`; do
install -m755 -D "./source/CoolTerm Libs/$i" $out/lib/$i
done
install -m755 -D "./source/CoolTerm" $out/bin/CoolTerm
runHook postInstall
'';
meta = with lib; {
homepage = "https://freeware.the-meiers.org/";
description = "CoolTerm";
platforms = platforms.linux;
};
};
};
}