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

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