summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: d0c326d9ca75e03a4633dee8eadd4ee065931309 (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 = "764fa195e2e9cfa5f8101e770563acdd09d5eed5";
    sha256 = "4be5bbffc4a9f0897c12ff2870c11829648afb928ccde91d9bfeb76d46d8581b";
  };
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup

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