summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: c84dd96b6d233b9726b12f281fb61e013918a7cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv
, fetchgit
}:

let
in stdenv.mkDerivation {
  name = "prosody-auth";
  src = fetchgit {
    url = "git://git.yggdrasil.li/prosody_auth";
    rev = "d08604a42f8499867cda52408870619692b36a6d";
    sha256 = "4fb6b2af1bb7f5c888918ddc1b4844ecc4ef83874aaa152f861f09b3e3edfa25";
  };
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup

    mkdir -p $out
    cp -rv $src/mod_auth_custom $out
  '';
}