Use custom nheko

This commit is contained in:
Alexander Bantyev 2021-06-18 23:48:50 +03:00
parent d68d27a744
commit 99c6985782
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 31 additions and 0 deletions

18
flake.lock generated
View File

@ -339,6 +339,23 @@
"type": "github"
}
},
"nheko": {
"flake": false,
"locked": {
"lastModified": 1624023535,
"narHash": "sha256-m1gt1pUX1VnZIJzGGde52ZbKn4o44p2RM3f6sUtJcM4=",
"owner": "balsoft",
"repo": "nheko",
"rev": "9f798e76ede3672d91276b1be7dd20de5459c9df",
"type": "github"
},
"original": {
"owner": "balsoft",
"ref": "allow-edits-of-pending-messages",
"repo": "nheko",
"type": "github"
}
},
"nix": {
"inputs": {
"lowdown-src": "lowdown-src",
@ -589,6 +606,7 @@
"impermanence": "impermanence",
"lambda-launcher": "lambda-launcher",
"materia-theme": "materia-theme",
"nheko": "nheko",
"nix": "nix",
"nix-direnv": "nix-direnv",
"nixos-fhs-compat": "nixos-fhs-compat",

View File

@ -62,6 +62,11 @@
nix-direnv = {
url = "github:nix-community/nix-direnv";
};
nheko = {
url = "github:balsoft/nheko/allow-edits-of-pending-messages";
flake = false;
};
};
outputs = { nixpkgs, nix, self, deploy-rs, ... }@inputs: {

View File

@ -106,6 +106,14 @@ in {
# });
nix-direnv = inputs.nix-direnv.defaultPackage.${system};
nheko = super.nheko.overrideAttrs (oa: {
src = inputs.nheko;
patches = [(self.fetchpatch {
url = "https://nheko.im/nheko-reborn/nheko/-/commit/78fb89355f189e4fb57e8d0ca0089e09547fea50.patch";
sha256 = "0lqjzv5k9cxi7sfrhj0a75vyzx1m5bzvmbvn4ckr098zilr914bb";
})] ++ oa.patches or [];
});
})
];
nixpkgs.config = {