Skip to content

Commit

Permalink
feat: update package for chissoku
Browse files Browse the repository at this point in the history
  • Loading branch information
s3igo committed Sep 23, 2024
1 parent 6b1972c commit c7ed5a8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 35 deletions.
20 changes: 0 additions & 20 deletions home/wezterm/chissoku.nix

This file was deleted.

31 changes: 16 additions & 15 deletions home/wezterm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,26 @@
user,
...
}:

let
chissoku = pkgs.callPackage ../../packages/chissoku.nix { };
in

{
programs.wezterm = {
enable = true;
extraConfig =
let
chissoku = import ./chissoku.nix { inherit pkgs; };
in
''
---@type { default: table, scheme: table }
local colors = require('colors')
extraConfig = ''
---@type { default: table, scheme: table }
local colors = require('colors')
require('events')(colors.default, '${chissoku}/bin/chissoku')
return require('config')(
colors.scheme,
require('wezterm').font('UDEV Gothic NFLG'),
require('mappings'),
'/etc/profiles/per-user/${user}/bin/fish'
)
'';
require('events')(colors.default, '${chissoku}/bin/chissoku')
return require('config')(
colors.scheme,
require('wezterm').font('UDEV Gothic NFLG'),
require('mappings'),
'/etc/profiles/per-user/${user}/bin/fish'
)
'';
};

xdg.configFile.wezterm = {
Expand Down
16 changes: 16 additions & 0 deletions packages/chissoku.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
buildGoModule,
fetchurl,
}:

buildGoModule rec {
pname = "chissoku";
version = "v2.1.1";

src = fetchurl {
url = "https://github.com/northeye/chissoku/archive/refs/tags/${version}.tar.gz";
sha256 = "sha256-O2QZZJLBqKrY5ctcIW7RX6ZIgMg3jL6pp7vLhhfMv1k=";
};

vendorHash = "sha256-CmYv5AWRR+zllvxl4olBqfmB9B8X7QSgF9fHMnU6kaU=";
}
1 change: 1 addition & 0 deletions packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ in

{
inherit (pkgs) skk-dict yaskkserv2 yaskkserv2-dict;
chissoku = pkgs.callPackage ./chissoku.nix { };
neovim = makeNixvim {
imports = with neovim-config.nixosModules; [
default
Expand Down

0 comments on commit c7ed5a8

Please sign in to comment.