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

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