overrides: pin vencord to flake input

This commit is contained in:
Infinidoge 2024-09-24 23:49:05 -04:00
parent b88451bb72
commit 6e624c2b78
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
3 changed files with 36 additions and 2 deletions

19
flake.lock generated
View file

@ -907,7 +907,8 @@
"stable": "stable", "stable": "stable",
"systems": "systems_2", "systems": "systems_2",
"treefmt-nix": "treefmt-nix_2", "treefmt-nix": "treefmt-nix_2",
"universe-cli": "universe-cli" "universe-cli": "universe-cli",
"vencord": "vencord"
} }
}, },
"rust-analyzer-src": { "rust-analyzer-src": {
@ -1070,6 +1071,22 @@
"repo": "universe-cli", "repo": "universe-cli",
"type": "github" "type": "github"
} }
},
"vencord": {
"flake": false,
"locked": {
"lastModified": 1727154824,
"narHash": "sha256-koAs4jlOQBU50f25qaogZEvvByGPlVBHBvqjyBQzjOs=",
"owner": "Vendicated",
"repo": "Vencord",
"rev": "cb2848f186f3d074d1a3390643aba70fa481eb6b",
"type": "github"
},
"original": {
"owner": "Vendicated",
"repo": "Vencord",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -52,6 +52,9 @@
## Conduwuit ## Conduwuit
conduwuit.url = "github:girlbossceo/conduwuit"; conduwuit.url = "github:girlbossceo/conduwuit";
## Vencord
vencord = { url = "github:Vendicated/Vencord"; flake = false; };
### Cleanup ### ### Cleanup ###
## Common ## Common
blank.url = "github:divnix/blank"; blank.url = "github:divnix/blank";

View file

@ -9,12 +9,17 @@ let
latest = mkPkgsUnfree inputs.latest; latest = mkPkgsUnfree inputs.latest;
fork = mkPkgs inputs.fork; fork = mkPkgs inputs.fork;
stable = mkPkgs inputs.stable; stable = mkPkgs inputs.stable;
versionFromInput = input:
let
slice = a: b: builtins.substring a b input.lastModifiedDate;
in
"0-unstable-${slice 0 5}-${slice 5 7}-${slice 7 9}";
in in
{ {
inherit latest fork stable; inherit latest fork stable;
inherit (latest) inherit (latest)
vencord
; ;
inherit (fork) inherit (fork)
@ -24,6 +29,15 @@ in
nix-melt nix-melt
; ;
vencord = latest.vencord.overrideAttrs (old: {
src = inputs.vencord;
version = versionFromInput inputs.vencord;
env = old.env // {
VENCORD_REMOTE = "Vendicated/Vencord";
VENCORD_HASH = builtins.substring 0 9 inputs.vencord.rev;
};
});
schildichat-desktop = stable.schildichat-desktop.override { electron = final.electron_30; }; schildichat-desktop = stable.schildichat-desktop.override { electron = final.electron_30; };
python3 = prev.python3.override { python3 = prev.python3.override {