blob: ebc1099f62b1d15b78c6a4d8e630fa9b8ca1771c (
plain)
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
|
{
description = "A Nix flake for creating a devshell and build environment for the umami protocol";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }: {
packages.x86_64-linux = let
pkgs = import nixpkgs {
system = "x86_64-linux";
};
in
{
default = pkgs.stdenv.mkDerivation {
pname = "umami";
version = "1.0.0";
src = ./.;
buildInputs = with pkgs; [ clang gnumake valgrind bear openssl doxygen ];
buildPhase = "make";
installPhase = ''
mkdir -p $out
cp -r bin/ $out/
'';
};
};
devShell.x86_64-linux = let
pkgs = import nixpkgs {
system = "x86_64-linux";
};
in
pkgs.mkShell {
buildInputs = with pkgs; [ clang gnumake valgrind bear openssl doxygen ];
};
};
}
|