-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
derivation.nix
57 lines (50 loc) · 1.03 KB
/
derivation.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
lib,
python3Packages,
fetchPypi,
coreutils,
pyright,
}: let
fs = lib.fileset;
in
python3Packages.buildPythonApplication rec {
name = "sqlelf";
pyproject = true;
SETUPTOOLS_SCM_PRETEND_VERSION = "0.0.0";
TEST_BINARY = "${coreutils}/bin/ls";
src = fs.toSource {
root = ./.;
fileset = fs.unions [
./pyproject.toml
./tests
./sqlelf
./setup.cfg
./mypy.ini
./Makefile
./tools
./examples
./benchmarks
];
};
build-system = with python3Packages; [
setuptools
setuptools-scm
];
dependencies = with python3Packages; [
capstone
lief
apsw
sh
];
nativeCheckInputs = with python3Packages;
[pytestCheckHook flake8 mypy isort black]
++ [pyright];
postCheck = ''
make lint
'';
meta = {
homepage = "https://github.com/fzakaria/sqlelf";
description = "Explore ELF objects through the power of SQL";
license = lib.licenses.mit;
};
}