diff --git a/flake.nix b/flake.nix index 13ddaca..90cf267 100644 --- a/flake.nix +++ b/flake.nix @@ -325,6 +325,7 @@ inherit spkgs; isUnstable = true; }; + irken = upkgs.tclPackages.callPackage ./pkgs/irken.nix { }; ttfs = upkgs.callPackage ./pkgs/ttfs.nix { }; intiface-engine = upkgs.callPackage ./pkgs/intiface-engine.nix { }; flake-warn = diff --git a/hosts/europa/default.nix b/hosts/europa/default.nix index 2e9b4bb..b6ec235 100644 --- a/hosts/europa/default.nix +++ b/hosts/europa/default.nix @@ -401,6 +401,7 @@ in (callPackage ../../pkgs/zutty.nix { }) (python3Packages.callPackage ../../pkgs/watchmap.nix { }) (python3Packages.callPackage ../../pkgs/ble-serial.nix { }) + (tclPackages.callPackage ../../pkgs/irken.nix { }) restic ]; diff --git a/pkgs/irken.nix b/pkgs/irken.nix new file mode 100644 index 0000000..38f87e6 --- /dev/null +++ b/pkgs/irken.nix @@ -0,0 +1,33 @@ +{ lib, mkTclDerivation, fetchFromGitHub, tcltls, bwidget, tk }: + +mkTclDerivation { + + pname = "irken"; + version = "2024-11-16"; + + src = fetchFromGitHub { + owner = "dlowe-net"; + repo = "irken"; + rev = "659a185de9b6c5a48f46a4535911123c91c7c866"; + hash = "sha256-Sti6id6aT9QFug6QkNPHf4LisBCuF4LqLNlNEaIUNI8="; + }; + + buildInputs = [ + tcltls + bwidget + tk + ]; + + installPhase = '' + runHook preInstall + mkdir -p $out/bin + cp irken.tcl $out/bin/irken + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/dlowe-net/irken"; + license = licenses.asl20; + maintainers = with maintainers; [ qbit ]; + }; +}