diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /flakes/mypackages/pkgs/telegramircd/default.nix | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them
contained personnal information about users. All thos changes got
stashed into a single commit (history is kept in a different place) and
private information was moved in a separate private repository
Diffstat (limited to 'flakes/mypackages/pkgs/telegramircd/default.nix')
-rw-r--r-- | flakes/mypackages/pkgs/telegramircd/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/flakes/mypackages/pkgs/telegramircd/default.nix b/flakes/mypackages/pkgs/telegramircd/default.nix new file mode 100644 index 0000000..d9196a2 --- /dev/null +++ b/flakes/mypackages/pkgs/telegramircd/default.nix | |||
@@ -0,0 +1,22 @@ | |||
1 | { openssl, telethon, python3Packages, fetchFromGitHub }: | ||
2 | with python3Packages; | ||
3 | buildPythonApplication rec { | ||
4 | format = "other"; | ||
5 | pname = "telegramircd"; | ||
6 | version = "master"; | ||
7 | propagatedBuildInputs = [ telethon aiohttp ConfigArgParse openssl ]; | ||
8 | src = fetchFromGitHub { | ||
9 | owner = "MaskRay"; | ||
10 | repo = "telegramircd"; | ||
11 | rev = "40a0c7cf60492bde3f44d43f06f62e3792480139"; | ||
12 | sha256 = "123fjhgxq2fzn0ar8274jv7jjbxnlpidrj5333kbch7rpcipks0y"; | ||
13 | fetchSubmodules = true; | ||
14 | }; | ||
15 | LD_LIBRARY_PATH = "${openssl.out}/lib"; | ||
16 | installPhase = '' | ||
17 | install -D $src/telegramircd.py $out/bin/telegramircd | ||
18 | wrapProgram "$out/bin/telegramircd" \ | ||
19 | --prefix LD_LIBRARY_PATH : "${openssl.out}/lib" | ||
20 | install -Dm644 "$src/config" -t "$out/etc/telegramircd/" | ||
21 | ''; | ||
22 | } | ||