tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ericw-tools: init at 0.18.1
Astro
4 years ago
ad18876f
24ce53d7
+50
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
ericw-tools
default.nix
top-level
all-packages.nix
+48
pkgs/applications/misc/ericw-tools/default.nix
···
1
1
+
{ lib, stdenv, fetchFromGitHub
2
2
+
, gtest, fmt
3
3
+
, cmake, ninja, installShellFiles
4
4
+
}:
5
5
+
6
6
+
stdenv.mkDerivation rec {
7
7
+
pname = "ericw-tools";
8
8
+
version = "0.18.1";
9
9
+
10
10
+
src = fetchFromGitHub {
11
11
+
owner = "ericwa";
12
12
+
repo = "ericw-tools";
13
13
+
rev = "v${version}";
14
14
+
sha256 = "11sap7qv0rlhw8q25azvhgjcwiql3zam09q0gim3i04cg6fkh0vp";
15
15
+
};
16
16
+
postUnpack = ''
17
17
+
pushd source/3rdparty
18
18
+
ln -s ${fmt.src} fmt
19
19
+
ln -s ${gtest.src} googletest
20
20
+
popd
21
21
+
'';
22
22
+
23
23
+
nativeBuildInputs = [ cmake ninja installShellFiles ];
24
24
+
25
25
+
outputs = [ "out" "doc" "man" ];
26
26
+
installPhase = ''
27
27
+
runHook preInstall
28
28
+
29
29
+
mkdir -p $out/bin
30
30
+
for TOOL in bspinfo bsputil light qbsp vis ; do
31
31
+
cp -a $TOOL/$TOOL $out/bin/
32
32
+
done
33
33
+
34
34
+
installManPage ../man/*.?
35
35
+
36
36
+
mkdir -p $doc/share/doc/ericw-tools
37
37
+
cp -a ../README.md ../changelog.txt $doc/share/doc/ericw-tools/
38
38
+
39
39
+
runHook postInstall
40
40
+
'';
41
41
+
42
42
+
meta = with lib; {
43
43
+
homepage = "https://ericwa.github.io/ericw-tools/";
44
44
+
description = "Map compile tools for Quake and Hexen 2";
45
45
+
license = licenses.gpl3Plus;
46
46
+
maintainers = with maintainers; [ astro ];
47
47
+
};
48
48
+
}
+2
pkgs/top-level/all-packages.nix
···
4714
4714
4715
4715
endlessh = callPackage ../servers/endlessh { };
4716
4716
4717
4717
+
ericw-tools = callPackage ../applications/misc/ericw-tools { };
4718
4718
+
4717
4719
cryfs = callPackage ../tools/filesystems/cryfs { };
4718
4720
4719
4721
encfs = callPackage ../tools/filesystems/encfs {