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

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