mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
Redo overlays setup. Move to "final: prev:". Provide TST as overlay
This commit is contained in:
parent
5a35ac3c3e
commit
dc5d6552a1
9 changed files with 51 additions and 44 deletions
|
|
@ -1,30 +1,17 @@
|
|||
{ sources, system ? builtins.currentSystem, ... }@args:
|
||||
|
||||
let
|
||||
overlay = self: super: {
|
||||
nur = import sources.nur {
|
||||
nurpkgs = self;
|
||||
pkgs = self;
|
||||
};
|
||||
anicca = self.callPackage sources.anicca {};
|
||||
rustfmt = super.rustfmt.overrideAttrs ({ patches ? [ ], ... }: {
|
||||
patches = patches ++ [
|
||||
# Adds an option variant that merges all use statements into a single block.
|
||||
# Taken from https://github.com/rust-lang/rustfmt/pull/4680
|
||||
./Implement-One-option-for-imports_granularity-4669.patch
|
||||
];
|
||||
});
|
||||
linuxPackagesFor = kernel: (super.linuxPackagesFor kernel).extend (_: ksuper: {
|
||||
zfsUnstable = ksuper.zfsUnstable.overrideAttrs (old: { meta = old.meta // { broken = false; }; });
|
||||
});
|
||||
};
|
||||
pkgs = import sources.nixpkgs {
|
||||
overlays = [
|
||||
(import (sources.arcexprs + "/overlay.nix"))
|
||||
(import (sources.katexprs + "/overlay.nix"))
|
||||
(import ./nur { inherit sources; })
|
||||
(import sources.emacs-overlay)
|
||||
overlay
|
||||
];
|
||||
(import ./rustfmt)
|
||||
(import ./firefox-tst)
|
||||
] ++ (map (path: import "${path}/overlay.nix") [
|
||||
sources.arcexprs
|
||||
sources.katexprs
|
||||
sources.anicca
|
||||
]);
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [
|
||||
|
|
@ -33,4 +20,4 @@ let
|
|||
};
|
||||
};
|
||||
in
|
||||
pkgs
|
||||
pkgs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue