nixos-config

My NixOS configuration files

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 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
    '';
  });
}