blob: 34c85099f82b475585e1379c8d4ffd411a67e4ac (
plain) (
blame)
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
58
59
60
61
62
|
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
lua-libluv = with pkgs; luajitPackages.libluv.overrideAttrs (self: rec {
version = "1.50.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/luv-${version}.rockspec";
sha256 = "sha256-IL2EejtmT0pw0cAupMz0gvP3a19NPsc45W1RaoeGJgY=";
}).outPath;
src = fetchurl {
url = "https://github.com/luvit/luv/releases/download/${version}/luv-${version}.tar.gz";
sha256 = "sha256-2GfDAk2cmB1U8u3YPhP9bcEVjwYIY197HA9rVYa1vDQ=";
};
});
dependencies = with pkgs; [
qt6.full
luajit
libuv
lua-libluv
# libcef
# nss
];
in {
devShells.default = pkgs.mkShell rec {
buildInputs = with pkgs; [
cmake
gnumake
clang-tools
pkg-config
gdb
valgrind
] ++ dependencies;
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
};
packages.default = pkgs.stdenv.mkDerivation {
pname = "null-browser";
version = "0.0.0";
src = ./.;
buildInputs = with pkgs; [
qt6.qtbase
] ++ dependencies;
nativeBuildInputs = with pkgs; [
cmake
qt6.wrapQtAppsHook
pkg-config
];
};
});
}
|