summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: e14d084c186491e1df908c57adad64bdc0f50a44 (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 = "2b45e30226650451257f379568545539e64999e1";
    sha256 = "f80c3f82bd06e048af2ee654a02840ae3e2894b317aa664233b3f55f33989df5";
  };
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup

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