Skip to content

Commit 13e7a99

Browse files
author
Simon Inns
committed
Add a nix flake
1 parent be19c30 commit 13e7a99

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

flake.nix

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
description = "ld-decode-tools (Nix flake)";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let
12+
pkgs = import nixpkgs { inherit system; };
13+
in
14+
{
15+
packages.default = pkgs.stdenv.mkDerivation {
16+
pname = "ld-decode-tools";
17+
version = "7.2.0";
18+
src = ./.;
19+
20+
nativeBuildInputs = with pkgs; [
21+
cmake
22+
ninja
23+
pkg-config
24+
qt6.wrapQtAppsHook
25+
];
26+
27+
buildInputs = with pkgs; [
28+
qt6.qtbase
29+
qt6.qtsql
30+
fftw
31+
ffmpeg
32+
sqlite
33+
libGL
34+
];
35+
36+
cmakeBuildType = "Release";
37+
cmakeFlags = [
38+
"-DCMAKE_BUILD_TYPE=Release"
39+
];
40+
};
41+
42+
devShells.default = pkgs.mkShell {
43+
packages = with pkgs; [
44+
cmake
45+
ninja
46+
pkg-config
47+
qt6.qtbase
48+
qt6.qtsql
49+
fftw
50+
ffmpeg
51+
sqlite
52+
libGL
53+
python3
54+
];
55+
};
56+
}
57+
);
58+
}

0 commit comments

Comments
 (0)