Add build derivation
This commit is contained in:
26
flake.nix
26
flake.nix
@@ -32,6 +32,32 @@
|
||||
opencv-custom
|
||||
];
|
||||
};
|
||||
packages.default = pkgs.stdenv.mkDerivation {
|
||||
name = "video-streaming-poc";
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
boost
|
||||
opencv-custom
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
meson setup --wipe build
|
||||
meson compile
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp build/client $out/bin/
|
||||
cp build/server $out/bin/
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user