nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 nixosTests,
6}:
7
8let
9 sources = (import ./sources.nix) { inherit fetchFromGitHub; };
10in
11stdenv.mkDerivation {
12 pname = "${sources.pname}-web";
13
14 inherit (sources) version src;
15
16 dontBuild = true; # We should just copy the web templates
17
18 installPhase = ''
19 mkdir -p $out/share/
20
21 cp -vr contrib/webroot $out/share/
22 cp -vr contrib/templates $out/share/
23 '';
24
25 passthru.tests = nixosTests.hockeypuck;
26
27 meta = with lib; {
28 description = "OpenPGP Key Server web resources";
29 homepage = "https://github.com/hockeypuck/hockeypuck";
30 license = licenses.gpl3Plus;
31 maintainers = [ maintainers.etu ];
32 };
33}