2023-02-27 23:02:37 +01:00
|
|
|
{ inputs }: final: prev:
|
|
|
|
let
|
|
|
|
mkDate = longDate: (prev.lib.concatStringsSep "-" [
|
|
|
|
(builtins.substring 0 4 longDate)
|
|
|
|
(builtins.substring 4 2 longDate)
|
|
|
|
(builtins.substring 6 2 longDate)
|
|
|
|
]);
|
2023-03-02 09:15:09 +01:00
|
|
|
mkVersionSrc = src: "unstable-" + builtins.substring 0 7 src.rev;
|
|
|
|
mkVersionInput = input: "unstable-" + mkDate (input.lastModifiedDate or "19700101") + "_" + (input.shortRev or "dirty");
|
2023-02-27 23:02:37 +01:00
|
|
|
in
|
|
|
|
{
|
2023-02-17 12:39:03 +01:00
|
|
|
agenix = inputs.agenix.packages.${prev.system}.default;
|
2023-02-24 18:42:20 +01:00
|
|
|
attic = inputs.attic.packages.${prev.system}.default;
|
2023-02-17 12:39:03 +01:00
|
|
|
hyprpaper = inputs.hyprpaper.packages.${prev.system}.default;
|
2023-02-17 12:31:31 +01:00
|
|
|
neovim-nightly = inputs.neovim.packages.${prev.system}.default;
|
2023-02-17 13:01:11 +01:00
|
|
|
nil = inputs.nil.packages.${prev.system}.default;
|
2023-02-17 12:31:31 +01:00
|
|
|
|
2022-12-23 12:37:57 +01:00
|
|
|
logseq-wayland = prev.symlinkJoin {
|
2022-12-30 18:58:13 +01:00
|
|
|
name = "logseq-wayland";
|
2022-12-23 12:37:57 +01:00
|
|
|
paths = [ prev.logseq ];
|
|
|
|
nativeBuildInputs = [ prev.makeWrapper ];
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/logseq \
|
|
|
|
--add-flags "--socket=wayland --enable-features=UseOzonePlatform --ozone-platform=wayland"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-02-03 14:19:13 +01:00
|
|
|
waybar-hyprland = prev.waybar.overrideAttrs (old: {
|
|
|
|
pname = "${old.pname}-hyprland";
|
|
|
|
postPatch = old.postPatch or "" + ''
|
|
|
|
sed -i 's,zext_workspace_handle_v1_activate(workspace_handle_);,const std::string command = "${final.hyprland}/bin/hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());,g' src/modules/wlr/workspace_manager.cpp
|
|
|
|
'';
|
|
|
|
mesonFlags = old.mesonFlags or [ ] ++ [ "-Dexperimental=true" ];
|
|
|
|
});
|
|
|
|
|
2023-02-27 23:02:37 +01:00
|
|
|
vimPlugins = prev.vimPlugins // {
|
|
|
|
nvim-treesitter-textsubjects = prev.vimUtils.buildVimPluginFrom2Nix {
|
|
|
|
pname = "nvim-treesitter-textsubjects";
|
|
|
|
version = mkVersionInput inputs.nvim-treesitter-textsubjects;
|
|
|
|
src = inputs.nvim-treesitter-textsubjects;
|
|
|
|
};
|
|
|
|
|
|
|
|
smartcolumn-nvim = prev.vimUtils.buildVimPluginFrom2Nix {
|
|
|
|
pname = "smartcolumn-nvim";
|
|
|
|
version = mkVersionInput inputs.smartcolumn-nvim;
|
|
|
|
src = inputs.smartcolumn-nvim;
|
|
|
|
};
|
|
|
|
|
|
|
|
copilot-lua = prev.vimPlugins.copilot-lua.overrideAttrs (old: {
|
|
|
|
version = mkVersionInput inputs.copilot-lua;
|
|
|
|
src = inputs.copilot-lua;
|
|
|
|
});
|
2023-02-27 23:53:35 +01:00
|
|
|
|
|
|
|
lspsaga-nvim-original = prev.vimPlugins.lspsaga-nvim-original.overrideAttrs (old: {
|
|
|
|
version = mkVersionInput inputs.lspsaga-nvim;
|
|
|
|
src = inputs.lspsaga-nvim;
|
|
|
|
});
|
2023-02-27 23:02:37 +01:00
|
|
|
};
|
|
|
|
|
2023-03-02 09:13:46 +01:00
|
|
|
neovide-hyprland = final.symlinkJoin {
|
|
|
|
name = "neovide-hyprland-${final.neovide.version}";
|
|
|
|
paths = [ final.neovide ];
|
|
|
|
nativeBuildInputs = [ final.makeWrapper ];
|
|
|
|
postBuild = ''
|
|
|
|
rm $out/bin/neovide
|
|
|
|
makeWrapper ${final.neovide}/bin/neovide $out/bin/neovide --set WINIT_UNIX_BACKEND x11
|
|
|
|
'';
|
|
|
|
meta = final.neovide.meta // {
|
|
|
|
mainProgram = "neovide";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-03-21 13:23:54 +01:00
|
|
|
master = import inputs.master {
|
|
|
|
inherit (prev) system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
2021-10-19 11:55:23 +02:00
|
|
|
stable = import inputs.stable {
|
2021-10-31 15:24:24 +01:00
|
|
|
inherit (prev) system;
|
2021-09-14 23:34:44 +02:00
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
2021-09-11 12:27:37 +02:00
|
|
|
}
|