Skip to content

Commit

Permalink
Refine packaging for micro plugins with stdenvNoCC and license link
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Oct 20, 2024
1 parent bbf9b6d commit b88d361
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 16 deletions.
13 changes: 11 additions & 2 deletions pkgs/micro-catppuccin/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{ stdenv, fetchFromGitHub }:
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:

stdenv.mkDerivation {
stdenvNoCC.mkDerivation {
name = "micro-everforest";
src = fetchFromGitHub {
owner = "catppuccin";
Expand All @@ -16,4 +20,9 @@ stdenv.mkDerivation {
installPhase = ''
cp -rf src $out/colorschemes
'';

meta = {
# https://github.com/catppuccin/micro/blob/2802b32308e5b1a827689c095f11ae604bbc85e6/LICENSE
license = lib.licenses.mit;
};
}
13 changes: 11 additions & 2 deletions pkgs/micro-everforest/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{ stdenv, fetchFromGitHub }:
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:

stdenv.mkDerivation {
stdenvNoCC.mkDerivation {
name = "micro-everforest";
src = fetchFromGitHub {
owner = "atomashevic";
Expand All @@ -17,4 +21,9 @@ stdenv.mkDerivation {
installPhase = ''
cp everforest.micro $out/colorschemes
'';

meta = {
# https://github.com/atomashevic/everforest-micro/blob/3a1844eb88e58c582ac902e27d7cc1b33f43199b/LICENSE
license = lib.licenses.mit;
};
}
11 changes: 6 additions & 5 deletions pkgs/micro-fzfinder/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
lib,
stdenv,
stdenvNoCC,
fetchFromGitHub,
}:

stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "micro-fzfinder";
version = "0.2.0";

Expand All @@ -24,11 +24,12 @@ stdenv.mkDerivation rec {
cp fzfinder.lua $out
'';

meta = with lib; {
meta = {
description = "The plugin allows you to integrate fzf to select and search for your project files";
homepage = "https://github.com/MuratovAS/micro-fzfinder";
license = licenses.mit;
# https://github.com/MuratovAS/micro-fzfinder/blob/7be0adb25d72b557eab9fea5aceaff18d47bff52/LICENSE
license = lib.licenses.mit;
mainProgram = "micro-fzfinder";
platforms = platforms.all;
platforms = lib.platforms.all;
};
}
10 changes: 5 additions & 5 deletions pkgs/micro-kdl/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
lib,
stdenv,
stdenvNoCC,
fetchFromGitHub,
}:

stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "micro-kdl";
version = "0.1.0";

Expand All @@ -24,11 +24,11 @@ stdenv.mkDerivation rec {
cp kdl.* $out
'';

meta = with lib; {
meta = {
description = "Micro editor syntax highlighting for KDL";
homepage = "https://github.com/kachick/micro-kdl";
license = licenses.mit;
license = lib.licenses.mit;
mainProgram = "micro-kdl";
platforms = platforms.all;
platforms = lib.platforms.all;
};
}
13 changes: 11 additions & 2 deletions pkgs/micro-nordcolors/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{ stdenv, fetchFromGitHub }:
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:

stdenv.mkDerivation {
stdenvNoCC.mkDerivation {
name = "micro-nordcolors";
src = fetchFromGitHub {
owner = "KiranWells";
Expand All @@ -19,4 +23,9 @@ stdenv.mkDerivation {
cp -rf ./colorschemes $out/colorschemes
cp -rf ./help $out/help
'';

meta = {
# https://github.com/KiranWells/micro-nord-tc-colors/blob/f63c855735f755704c25c958abe45f12a4b2c8d3/LICENSE
license = lib.licenses.mit;
};
}

0 comments on commit b88d361

Please sign in to comment.