summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: f5b085deeafb5244bfed1a5750a54bb5b82feb0a (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/setup

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