summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: 67e7ad49d3677e7fa27a5989bb95a871eb0ffde4 (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 = "51df2d3686ec815590dc96dd8729aed5f8328d15";
    sha256 = "eb8d93fdc5424cf9306f2222c023289b9ab6cf06ffdebfb6dfa5545f6bc7fd47";
  };
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup

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