summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: 918ae5dcf95bcb62316517c64da1331765e8ba7a (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 = "207bd155a529fd11083d1d2dd48647debc97444e";
    sha256 = "9662e55369b6772ac7c49bcf2f631bf1414dd67e743da1adc32fc6f9ea1dd2b0";
  };
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup

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