This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
65 lines (53 loc) · 1.49 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
{
# https://git.gnunet.org/messenger-cli
description = "A very basic flake";
inputs = {
messenger-cli-src = {
url = "git+https://git.gnunet.org/messenger-cli";
flake = false;
};
libgnunetchat-src = {
url = "git+https://git.gnunet.org/libgnunetchat";
flake = false;
};
};
outputs = { self, nixpkgs, messenger-cli-src, libgnunetchat-src }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
overlays.default = final: _:
let
libgnunetchat = final.stdenv.mkDerivation {
name = "libgnunetchat";
src = libgnunetchat-src;
buildInputs = with final; [ gnunet libsodium libgcrypt libextractor ];
INSTALL_DIR = (placeholder "out") + "/";
prePatch = ''
mkdir -p $out/lib
'';
};
messenger-cli = final.stdenv.mkDerivation {
name = "gnunet-messenger-cli";
src = messenger-cli-src;
INSTALL_DIR = (placeholder "out") + "/";
buildInputs = with final; [
gnunet
libsodium
libgcrypt
libgnunetchat
ncurses
];
preInstall = ''
mkdir -p $out/bin
'';
};
in
{
inherit messenger-cli libgnunetchat;
};
packages.x86_64-linux = {
inherit (self.overlays.default pkgs null) libgnunetchat messenger-cli;
};
};
}