-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
49 lines (49 loc) · 1.4 KB
/
Copy pathflake.nix
File metadata and controls
49 lines (49 loc) · 1.4 KB
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
{
description = "djhcpp";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = {self, nixpkgs}:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
dependencies = [
pkgs.cmake
pkgs.clang-tools
pkgs.wxwidgets_3_3
pkgs.curlFull
pkgs.cpm-cmake
pkgs.wxformbuilder
pkgs.python3
pkgs.boost
pkgs.gdb
];
in
{
packages.${system}.default = pkgs.stdenv.mkDerivation {
name = "djhcpp";
src = pkgs.fetchgit {
url="https://github.com/MatteoGodzilla/djhcpp.git";
rev="v0.2.9";
fetchSubmodules = true;
deepClone = true;
hash="sha256-t8aQo64K4eK0TEjRjgdk/iwYueflHrTRmrHC/Q9Ff84=";
};
buildInputs = dependencies;
buildPhase = ''
runHook preBuild
./build-release.sh
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp ./build/djhcpp $out/bin
runHook postInstall
'';
};
devShells.${system}.default = pkgs.mkShell {
packages = dependencies;
};
};
}