-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
default.nix
42 lines (37 loc) · 895 Bytes
/
default.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
{ nixpkgs ? <nixpkgs> }:
with import nixpkgs {};
let
deps = import ./nix/deps.nix { inherit nixpkgs; };
releaseBuild = stdenv.mkDerivation rec {
name = "ewig-git";
version = "git";
src = builtins.filterSource (path: type:
baseNameOf path != ".git" &&
baseNameOf path != "result" &&
baseNameOf path != "build")
./.;
nativeBuildInputs = [ cmake ];
buildInputs = [
gcc7
ncurses
boost
deps.immer
deps.scelta
deps.utfcpp
deps.lager
deps.zug
];
meta = with lib; {
homepage = "https://github.com/arximboldi/ewig";
description = "The eternal text editor";
license = licenses.gpl3;
};
passthru.debug = releaseBuild.overrideAttrs (_: {
makeFlags = "ewig-debug";
installPhase = ''
mkdir -p $out/bin
cp ewig-debug $out/bin/ewig-debug
'';
});
};
in releaseBuild