mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
konawall package removal, rustfmt override
This commit is contained in:
parent
ee6b3cd875
commit
df4a036ef0
7 changed files with 498 additions and 30 deletions
35
overlays/default.nix
Normal file
35
overlays/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ sources, system ? builtins.currentSystem, ... }@args:
|
||||
|
||||
let
|
||||
overlay = self: super: {
|
||||
nur = import sources.nur {
|
||||
nurpkgs = self;
|
||||
pkgs = self;
|
||||
};
|
||||
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 sources.emacs-overlay)
|
||||
overlay
|
||||
];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [
|
||||
"ffmpeg-3.4.8"
|
||||
];
|
||||
};
|
||||
};
|
||||
in
|
||||
pkgs
|
||||
Loading…
Add table
Add a link
Reference in a new issue