summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: 55d3ff5471432c7559b9a9d0c7dfc8c6a8455dc4 (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 = "eb68d998a10b436194cc81f9a64620606b1bd216";
    sha256 = "e13bd6ba909ed479e85e32a11a16a1b953c643b85c0d54ec0d94be674ed31cea";
  };
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/profile

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