-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
67 lines (60 loc) · 1.61 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
description = "env flake";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
tgbot-cpp = with pkgs; stdenv.mkDerivation rec {
name = "tgbot-cpp";
src = fetchFromGitHub {
owner = "7FM";
repo = name;
rev = "06153f60377705c49b49cd56f5cf23c91d8347bd";
sha256 = "sha256-uTtfyriONQC+oXhwG2q7nCnsemf2mYZx5+1HSallsgo=";
# owner = "reo7sp";
# rev = "f1c2dbad1c9674f82e61b7cf76cdc618a2dba852";
# sha256 = "sha256-/oCpSS+FjVzaTjM8Zov0FEBeEJCzJpqXHV8xUFQvIEk=";
};
nativeBuildInputs = [
cmake
boost
zlib
openssl
];
};
drynomore-telegram-bot = with pkgs; stdenv.mkDerivation {
pname = "drynomore-telegram-bot";
version = "0.0.1";
src = ./server/telegram_bot;
nativeBuildInputs = [
cmake
libyamlcpp
tgbot-cpp
boost
zlib
openssl
];
};
in rec {
packages = rec {
drynomore = drynomore-telegram-bot;
default = drynomore;
};
devShell = pkgs.mkShell {
buildInputs = [
drynomore-telegram-bot
];
nativeBuildInputs = with pkgs; [
gdb
gnumake
cmake
openssl
boost
zlib
libyamlcpp
];
};
}
);
}