diff options
| author | LLLL Colonq <llll@colonq> | 2024-11-14 21:20:28 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2024-11-14 21:20:28 -0500 |
| commit | a3991ddb8f61955c5c48ac99b6eed14d5e9f986a (patch) | |
| tree | b58d9a4beeeca61547d1ae3696d64fc2e2561ab4 /flake.nix | |
| parent | d6bcaac870a03ed7ee0e6e1d6981e15f16778e2b (diff) | |
Account creation in LDAP using Twitch
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -10,6 +10,25 @@ system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; + lldap-cli = pkgs.stdenv.mkDerivation { + name = "lldap-cli"; + src = pkgs.fetchFromGitHub { + owner = "Zepmann"; + repo = "lldap-cli"; + rev = "2a80dc4"; + sha256 = "uk7SOiQmUYtoJnihSnPsu/7Er4wXX4xvPboJaNSMjkM="; + }; + buildPhase = ""; + installPhase = '' + mkdir -p $out/bin + cp lldap-cli $out/bin + ''; + }; + lldap-cli-wrapped = pkgs.writeShellScriptBin "lldap-cli" '' + export PATH=${pkgs.lldap}/bin:$PATH + ${lldap-cli}/bin/lldap-cli "$@" + ''; + haskellOverrides = self: super: { scotty = self.callHackageDirect { pkg = "scotty"; @@ -273,6 +292,7 @@ description = "Path to config file"; default = pkgs.writeText "fig-web.toml" '' port = 8000 + asset_path = "/var/lib/fig-web-assets" client_id = "" auth_token = "" db_host = "" @@ -317,6 +337,7 @@ description = "Path to config file"; default = pkgs.writeText "fig-web-secure.toml" '' port = 8000 + asset_path = "/var/lib/fig-web-assets" client_id = "" auth_token = "" db_host = "" @@ -356,6 +377,7 @@ ]; withHoogle = true; buildInputs = [ + lldap-cli-wrapped haskellPackages.cabal-install haskellPackages.haskell-language-server pkgs.nodejs |
