3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/hockeypuck/web.nix

29 lines
660 B
Nix
Raw Normal View History

2021-07-18 08:51:49 +01:00
{ stdenv, lib, fetchFromGitHub, nixosTests }:
2021-07-17 20:31:56 +01:00
let
sources = (import ./sources.nix) { inherit fetchFromGitHub; };
in
stdenv.mkDerivation {
pname = "${sources.pname}-web";
inherit (sources) version src;
dontBuild = true; # We should just copy the web templates
installPhase = ''
mkdir -p $out/share/
cp -vr contrib/webroot $out/share/
cp -vr contrib/templates $out/share/
'';
2021-07-18 08:51:49 +01:00
passthru.tests = nixosTests.hockeypuck;
2021-07-17 20:31:56 +01:00
meta = with lib; {
description = "OpenPGP Key Server web resources";
homepage = "https://github.com/hockeypuck/hockeypuck";
license = licenses.gpl3Plus;
maintainers = [ maintainers.etu ];
};
}