Add a default.nix for development/building for Nix

This is mainly so that you could easily have a nix-shell with the
dependencies set up and also a way to build a package out of it.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2017-05-03 01:08:51 +02:00
parent 171b5debb7
commit d891d9adb2
No known key found for this signature in database
GPG Key ID: 1DE8E48E57DB5436

10
default.nix Normal file
View File

@ -0,0 +1,10 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "CasterSoundboard";
src = ./CasterSoundboard;
nativeBuildInputs = [ qt5.qmakeHook qt5.makeQtWrapper ];
buildInputs = [ qt5.qtmultimedia ];
enableParallelBuilding = true;
postInstall = "wrapQtProgram \"$out/bin/$name\"";
}