refactor(xonsh): make a better xonsh wrapper
This commit is contained in:
parent
d84ed13e0f
commit
41992c65e7
4 changed files with 103 additions and 87 deletions
|
@ -1,28 +1,31 @@
|
|||
{self, ...}: {
|
||||
flake.overlays.default = _final: prev: {
|
||||
fairfax = prev.callPackage ./derivations/fairfax.nix {};
|
||||
river-bedload = prev.callPackage ./derivations/river-bedload {};
|
||||
nicotine-plus = prev.symlinkJoin {
|
||||
name = "nicotine";
|
||||
paths = [prev.nicotine-plus];
|
||||
nativeBuildInputs = [prev.makeWrapper];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/nicotine \
|
||||
--set-default NICOTINE_LIBADWAITA 1
|
||||
'';
|
||||
};
|
||||
rose-pine-gtk-theme = prev.rose-pine-gtk-theme.overrideAttrs (_prevAttrs: {
|
||||
version = "master";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "rose-pine";
|
||||
repo = "gtk";
|
||||
rev = "master";
|
||||
hash = "sha256-vCWs+TOVURl18EdbJr5QAHfB+JX9lYJ3TPO6IklKeFE=";
|
||||
flake.overlays.default = _final: prev: let
|
||||
packages = {
|
||||
amadaluzian-starship = prev.callPackage ./derivations/starship.nix {};
|
||||
amadaluzian-xonsh = prev.callPackage ./derivations/xonsh {inherit (packages) amadaluzian-starship;};
|
||||
fairfax = prev.callPackage ./derivations/fairfax.nix {};
|
||||
river-bedload = prev.callPackage ./derivations/river-bedload {};
|
||||
nicotine-plus = prev.symlinkJoin {
|
||||
name = "nicotine";
|
||||
paths = [prev.nicotine-plus];
|
||||
nativeBuildInputs = [prev.makeWrapper];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/nicotine \
|
||||
--set-default NICOTINE_LIBADWAITA 1
|
||||
'';
|
||||
};
|
||||
});
|
||||
amadaluzian-starship = prev.callPackage ./derivations/starship.nix {};
|
||||
amadaluzian-xonsh = prev.callPackage ./derivations/xonsh {};
|
||||
};
|
||||
rose-pine-gtk-theme = prev.rose-pine-gtk-theme.overrideAttrs (_prevAttrs: {
|
||||
version = "master";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "rose-pine";
|
||||
repo = "gtk";
|
||||
rev = "master";
|
||||
hash = "sha256-vCWs+TOVURl18EdbJr5QAHfB+JX9lYJ3TPO6IklKeFE=";
|
||||
};
|
||||
});
|
||||
};
|
||||
in
|
||||
packages;
|
||||
perSystem = {pkgs, ...}: {
|
||||
packages = self.overlays.default null pkgs;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue