summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: 63ffd443b79ec31c4d5002983f05d2ce4863a8e6 (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 = "84625d50397151e4d0cb1e333857f556ebc1b47c";
    sha256 = "0424e04dea2dabc856665134eaa48e91ddc9d060374bd77e9c5046a2d3ae0c8f";
  };
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup

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