mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-05 03:32:34 +01:00
Compare commits
2 commits
15658311ed
...
47e79504f6
Author | SHA1 | Date | |
---|---|---|---|
47e79504f6 | |||
7044d9c889 |
4 changed files with 11 additions and 8 deletions
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue