Compare commits

...

2 commits

Author SHA1 Message Date
47e79504f6
nvim-plugins: don't include garbage files from nix stdenv in output 2024-05-24 12:20:04 +02:00
7044d9c889
nix update 2024-05-24 12:05:20 +02:00
4 changed files with 11 additions and 8 deletions

View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1716137900,
"narHash": "sha256-sowPU+tLQv8GlqtVtsXioTKeaQvlMz/pefcdwg8MvfM=",
"lastModified": 1716330097,
"narHash": "sha256-8BO3B7e3BiyIDsaKA0tY8O88rClYRTjvAp66y+VBUeU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6c0b7a92c30122196a761b440ac0d46d3d9954f1",
"rev": "5710852ba686cc1fd0d3b8e22b3117d43ba374c2",
"type": "github"
},
"original": {

View file

@ -3,6 +3,7 @@ let
default-jvms = with pkgs; {
java-8-openjdk = jdk8;
java-17-openjdk = jdk17;
java-21-openjdk = jdk21; # Useless, but jdtls needs it anyways
};
in
{

View file

@ -87,20 +87,20 @@ in
unpackPhase = ''
# Copy plugins sources here
mkdir plugins
${builtins.concatStringsSep "\n" (lib.mapAttrsToList
(name: src: "cp -r ${src} ${name}")
(name: src: "cp -r ${src} plugins/${name}")
config.cgnix.nvim-plugins)}
chmod -R +rw .
chmod -R +rw plugins
'';
buildPhase = ''
# Compile
${if mzte-nv-compiler != "" then "${mzte-nv-compiler} ." else ""}
${if mzte-nv-compiler != "" then "${mzte-nv-compiler} plugins" else ""}
'';
installPhase = ''
mkdir -p "$out"
mv * .* "$out"
mv plugins "$out"
'';
};
}

View file

@ -35,12 +35,14 @@ in
];
config.mzte-nix-packages = with pkgs; [
comma
nix-du
nix-output-monitor
nsxiv
nsxiv-pipe
nurl
(flakePkg "github:nix-community/zon2nix")
(flakePkg "github:zhaofengli/attic")
];
config.packages.mzte-nix = pkgs.symlinkJoin {