refactor: massive refactor using flake-parts; use typos-cli and
keep-sorted
This commit is contained in:
@@ -1,69 +1,27 @@
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
mkPkgs = type: final: _prev: {
|
||||
${type} = import inputs."nixpkgs-${type}" {
|
||||
system = final.stdenv.hostPlatform.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
additions =
|
||||
final: prev:
|
||||
lib.haumea.load {
|
||||
src = ../pkgs;
|
||||
loader = [
|
||||
{
|
||||
matches = str: builtins.match ".*\\.nix" str != null;
|
||||
loader = _: path: final.callPackage path { };
|
||||
}
|
||||
];
|
||||
transformer = lib.haumea.transformers.liftDefault;
|
||||
};
|
||||
|
||||
modifications =
|
||||
final: prev:
|
||||
lib.infuse prev {
|
||||
cage.__output.patches.__append = [ ./cage-specify-output-name.patch ];
|
||||
matrix-synapse.__assign = final.stable.matrix-synapse;
|
||||
bottles.__input.removeWarningPopup.__assign = true;
|
||||
|
||||
sing-box.__assign = prev.sing-box.overrideAttrs (finalAttrs: {
|
||||
version = "1.11.14";
|
||||
src = final.fetchFromGitHub {
|
||||
owner = "qjebbs";
|
||||
repo = "sing-box";
|
||||
# due to faulty tag generation
|
||||
tag = "v${finalAttrs.version}+rev";
|
||||
hash = "sha256-/p2PBTeeRJW3iq/BXJlw/Qn92Nrnw9fmUn5yNGl/o34=";
|
||||
};
|
||||
vendorHash = "sha256-C2HCNOzP1Jg3vz2i9uPmM1wC7Sw2YNt7MdYn939cu1Y=";
|
||||
postInstall = "";
|
||||
});
|
||||
};
|
||||
|
||||
# this allows us to access specific version of nixpkgs
|
||||
# by `pkgs.unstable`, `pkgs.stable` and `pkgs.master`
|
||||
unstable-packages = final: _prev: {
|
||||
unstable = import inputs.nixpkgs-unstable {
|
||||
system = final.stdenv.hostPlatform.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
stable-packages = final: _prev: {
|
||||
stable = import inputs.nixpkgs-stable {
|
||||
system = final.stdenv.hostPlatform.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
master-packages = final: _prev: {
|
||||
master = import inputs.nixpkgs-master {
|
||||
system = final.stdenv.hostPlatform.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
working-packages = final: _prev: {
|
||||
working = import inputs.nixpkgs-working {
|
||||
system = final.stdenv.hostPlatform.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
flake.overlays = {
|
||||
modifications =
|
||||
final: prev:
|
||||
lib.infuse prev {
|
||||
cage.__output.patches.__append = [ ./cage-specify-output-name.patch ];
|
||||
bottles.__input.removeWarningPopup.__assign = true;
|
||||
};
|
||||
}
|
||||
//
|
||||
# this allows us to access specific version of nixpkgs
|
||||
# by `pkgs.unstable`, `pkgs.stable` and `pkgs.master`
|
||||
lib.genAttrs [ "stable" "unstable" "master" ] mkPkgs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user