Skip to content

Commit

Permalink
Fix micro-nordcolors packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Aug 13, 2024
1 parent 01a135c commit 43b3d0e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
22 changes: 2 additions & 20 deletions home-manager/editor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,12 @@
...
}:

let
nordcolors = pkgs.stdenv.mkDerivation {
name = "micro-nordcolors";
src = pkgs.fetchFromGitHub {
owner = "KiranWells";
repo = "micro-nord-tc-colors";
rev = "f63c855735f755704c25c958abe45f12a4b2c8d3";
sha256 = "sha256-giCansV+9oa2OSQlt7DkLtL7B7sD00JUBaS9YsbJ9aU=";
};
buildPhase = ''
mkdir $out
'';
installPhase = ''
cp -rf ./colorschemes $out/colorschemes
'';
system = builtins.currentSystem;
};
in
{
# For temporal use
xdg.configFile."micro/colorschemes/.keep".text = "";
xdg.configFile."micro/colorschemes/nord-tc.micro".source = "${nordcolors}/colorschemes/nord-tc.micro";
xdg.configFile."micro/colorschemes/nord-16.micro".source = "${nordcolors}/colorschemes/nord-16.micro";

xdg.configFile."micro/plug/fzfinder".source = homemade-pkgs.micro-fzfinder;
xdg.configFile."micro/plug/nordcolors".source = homemade-pkgs.micro-nordcolors;

# Default keybinfings are https://github.com/zyedidia/micro/blob/master/runtime/help/keybindings.md
xdg.configFile."micro/bindings.json".source = ../config/micro/bindings.json;
Expand Down
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@
get-rclone-config-password = import ./get-rclone-config-password { inherit pkgs edge-pkgs; };

micro-fzfinder = pkgs.callPackage ./micro-fzfinder { };
micro-nordcolors = pkgs.callPackage ./micro-nordcolors { };
}
22 changes: 22 additions & 0 deletions pkgs/micro-nordcolors/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation {
name = "micro-nordcolors";
src = fetchFromGitHub {
owner = "KiranWells";
repo = "micro-nord-tc-colors";
rev = "f63c855735f755704c25c958abe45f12a4b2c8d3";
sha256 = "sha256-giCansV+9oa2OSQlt7DkLtL7B7sD00JUBaS9YsbJ9aU=";
};

buildPhase = ''
mkdir $out
'';

installPhase = ''
cp repo.json $out
cp *.lua $out
cp -rf ./colorschemes $out/colorschemes
cp -rf ./help $out/help
'';
}

0 comments on commit 43b3d0e

Please sign in to comment.