Initial commit
This commit is contained in:
41
build.nix
Executable file
41
build.nix
Executable file
@@ -0,0 +1,41 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, clang
|
||||
, qtbase
|
||||
, qtdeclarative
|
||||
, qtmultimedia
|
||||
, qtlocation
|
||||
, qtwebview
|
||||
, qtwayland
|
||||
, libglvnd
|
||||
, cmake
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "qyouradio";
|
||||
version = "1.0";
|
||||
|
||||
src = ./qyouradio;
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtdeclarative
|
||||
qtlocation
|
||||
qtmultimedia
|
||||
qtwebview
|
||||
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
qtwayland
|
||||
libglvnd
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
clang
|
||||
cmake
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp qyouradio $out/bin/
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user