1
0
forked from extern/nix-config

meta: Use separate directories for each overlay

This commit is contained in:
Donovan Glover 2023-06-06 05:03:23 -04:00
parent fc8b241f6e
commit 0eadd3469b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 34 additions and 23 deletions

View File

@ -0,0 +1,9 @@
{
nixpkgs.overlays = [
(final: prev: {
alejandra = prev.alejandra.overrideAttrs (old: {
patches = (old.patches or []) ++ [./remove-ads.patch];
});
})
];
}

View File

@ -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
];
}

View 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=";
});
});
})
];
}