Fetch sources info from nixpkgs

This commit is contained in:
dump_stack() 2023-04-09 10:26:02 +00:00
parent adfc4c5e1b
commit 3409eef71e
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -3,13 +3,14 @@
let let
secrets = import ./secrets.nix; secrets = import ./secrets.nix;
mastodon-source = pkgs.callPackage "${toString pkgs.path}/pkgs/servers/mastodon/source.nix" {};
mastodon-lor-sh = pkgs.mastodon.override { mastodon-lor-sh = pkgs.mastodon.override {
srcOverride = pkgs.applyPatches { srcOverride = pkgs.applyPatches {
src = pkgs.fetchgit { src = pkgs.fetchgit {
url = "https://github.com/mastodon/mastodon.git"; url = mastodon-source.src.url;
rev = "v${pkgs.mastodon.version}"; rev = mastodon-source.src.rev;
# TODO get sha256 from nixpkgs/pkgs/servers/mastodon/source.nix sha256 = mastodon-source.src.outputHash;
sha256 = "1c0mxz45pkgmyw81z025n1ps1dkdq92337h7sd865w2fbgmzg50l";
}; };
patches = [ patches = [
./patches/logo.patch ./patches/logo.patch
@ -28,12 +29,7 @@ let
./patches/simple-form.patch ./patches/simple-form.patch
./patches/not-so-scary-500.patch ./patches/not-so-scary-500.patch
# https://github.com/NixOS/nixpkgs/pull/223547 ] ++ mastodon-source.src.patches;
(pkgs.fetchpatch {
url = "https://github.com/mastodon/mastodon/commit/e7b81d7d9625893b1323e12215a2a98c0f19f58f.patch";
hash = "sha256-cF0wtbjTNbsyqHb3uy5zYFaACIcziJ2ulJpOT5VoDO0=";
})
];
postPatch = (import ./branding.nix { pkgs = pkgs; }).branding; postPatch = (import ./branding.nix { pkgs = pkgs; }).branding;
}; };
}; };