forked from extern/nix-config
meta: Use separate directories for each overlay
This commit is contained in:
parent
fc8b241f6e
commit
0eadd3469b
9
overlays/alejandra/default.nix
Normal file
9
overlays/alejandra/default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
alejandra = prev.alejandra.overrideAttrs (old: {
|
||||
patches = (old.patches or []) ++ [./remove-ads.patch];
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
@ -1,25 +1,6 @@
|
||||
{lib, ...}: {
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
joshuto = prev.joshuto.overrideAttrs (oldAttrs: rec {
|
||||
version = "493af3185092036cbbae81ae620b101f66cf4e9a";
|
||||
src = final.fetchFromGitHub {
|
||||
owner = "kamiyaa";
|
||||
repo = "joshuto";
|
||||
rev = "493af3185092036cbbae81ae620b101f66cf4e9a";
|
||||
sha256 = "sha256-jLlDMV03eFWDB1D6pFEq2MFAfoVwFTy8ZpweS9syDB0=";
|
||||
};
|
||||
|
||||
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (lib.const {
|
||||
name = "joshuto.tar.gz";
|
||||
inherit src;
|
||||
outputHash = "sha256-cDy7sccuZj+RNjaDGjqczGl//zgmMAifjv/ZMEO/yyY=";
|
||||
});
|
||||
});
|
||||
|
||||
alejandra = prev.alejandra.overrideAttrs (old: {
|
||||
patches = (old.patches or []) ++ [./alejandra-remove-ads.patch];
|
||||
});
|
||||
})
|
||||
{
|
||||
imports = [
|
||||
./alejandra
|
||||
./joshuto
|
||||
];
|
||||
}
|
||||
|
21
overlays/joshuto/default.nix
Normal file
21
overlays/joshuto/default.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{lib, ...}: {
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
joshuto = prev.joshuto.overrideAttrs (oldAttrs: rec {
|
||||
version = "493af3185092036cbbae81ae620b101f66cf4e9a";
|
||||
src = final.fetchFromGitHub {
|
||||
owner = "kamiyaa";
|
||||
repo = "joshuto";
|
||||
rev = "493af3185092036cbbae81ae620b101f66cf4e9a";
|
||||
sha256 = "sha256-jLlDMV03eFWDB1D6pFEq2MFAfoVwFTy8ZpweS9syDB0=";
|
||||
};
|
||||
|
||||
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (lib.const {
|
||||
name = "joshuto.tar.gz";
|
||||
inherit src;
|
||||
outputHash = "sha256-cDy7sccuZj+RNjaDGjqczGl//zgmMAifjv/ZMEO/yyY=";
|
||||
});
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user