-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
final: prev: {
legit-web = prev.legit-web.overrideAttrs (old: {
src = prev.fetchFromGitHub {
owner = "pocka";
repo = "legit";
rev = "master";
hash = "sha256-Z7pDdIvJXfSCGFxhOxSL1dBVjgHnC5P6Wa7AsQ9t6CY=";
};
vendorHash = "sha256-GR+ddG6058s9NDGwbk2z86vcOIa11DUQqP6tS0ruUdo=";
# Use a patch instead of a repo hosted on this server to avoid a circular dependency
patches = (old.patches or [ ]) ++ [ ./legit.patch ];
# The package in nixpkgs is a huge mess and has tons of mistakes
postInstall = ''
mkdir -p $out/lib/legit/templates
mkdir -p $out/lib/legit/static
cp -r templates/* $out/lib/legit/templates
cp -r static/* $out/lib/legit/static
'';
});
}