NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.19k stars 14.19k forks source link

Package request: KTechlab #233785

Open hervyqa opened 1 year ago

hervyqa commented 1 year ago

Project description

KTechlab is an IDE for microcontrollers and electronics designed to be as easy to use and unintrusive as possible.

Metadata

img

alex-fu27 commented 8 months ago

I just wanted to give this software a try, packaged it, then found out it doesn't suit my needs. Now, I don't want to maintain it, but if this is really important to somebody, it is easily packaged as

{ stdenv, lib, fetchurl, qt5, cmake, extra-cmake-modules, plasma5Packages }: let
  pname = "ktechlab";
  version = "0.50.0";
in stdenv.mkDerivation {
  inherit pname version;

  src = fetchurl {
    url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${pname}-${version}.tar.xz";
    hash = "sha256-zw/gePivrX8yN6TgUt0srOGF05CgLxXr5gzMq8vo/f4=";
  };

  buildInputs = [ qt5.qtbase ] ++ (with plasma5Packages.kdeFrameworks; [ plasma-framework khtml kparts ktexteditor ]);
  nativeBuildInputs = [ cmake extra-cmake-modules qt5.wrapQtAppsHook ];
}