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