summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: 0a20f439ba71f99ffa453e2e8b5fcfb8a4517dc7 (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 = "8d740aedb73a957d51ef7df8058fbb833ef8ee6b";
    sha256 = "c103ace686b856cace1f2ba3dc31bfb6d4bb0639abb712813c6a99f65922a8ec";
  };
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup

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