tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
backward-cpp: use cmake as a build system
Petr Hodina
8 months ago
6576844f
a347c07a
+11
-15
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ba
backward-cpp
package.nix
+11
-15
pkgs/by-name/ba/backward-cpp/package.nix
···
2
2
stdenv,
3
3
lib,
4
4
fetchFromGitHub,
5
5
+
cmake,
5
6
}:
6
7
7
7
-
stdenv.mkDerivation rec {
8
8
+
stdenv.mkDerivation (finalAttrs: {
8
9
pname = "backward";
9
10
version = "1.6";
10
11
11
12
src = fetchFromGitHub {
12
13
owner = "bombela";
13
14
repo = "backward-cpp";
14
14
-
rev = "v${version}";
15
15
+
rev = "v${finalAttrs.version}";
15
16
sha256 = "sha256-2k5PjwFxgA/2XPqJrPHxgSInM61FBEcieppBx+MAUKw=";
16
17
};
17
18
18
18
-
installPhase = ''
19
19
-
runHook preInstall
20
20
-
21
21
-
mkdir -p $out/include
22
22
-
cp backward.hpp $out/include
23
23
-
24
24
-
runHook postInstall
25
25
-
'';
19
19
+
nativeBuildInputs = [
20
20
+
cmake
21
21
+
];
26
22
27
27
-
meta = with lib; {
23
23
+
meta = {
28
24
description = "Beautiful stack trace pretty printer for C++";
29
25
homepage = "https://github.com/bombela/backward-cpp";
30
30
-
license = licenses.mit;
31
31
-
platforms = platforms.all;
32
32
-
maintainers = [ ];
26
26
+
license = lib.licenses.mit;
27
27
+
platforms = lib.platforms.all;
28
28
+
maintainers = with lib.maintainers; [ ];
33
29
};
34
34
-
}
30
30
+
})