2017-12-16 19:05:14 +03:00
|
|
|
{ pkgs, stdenv, qtbase, qttranslations, qtmultimedia, lmdb, mkDerivation, cmake }:
|
2017-08-05 18:40:00 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.1.0";
|
|
|
|
name = "nheko-${version}";
|
2017-08-05 18:56:41 +03:00
|
|
|
src = builtins.filterSource
|
|
|
|
(path: type:
|
|
|
|
let name = baseNameOf path;
|
|
|
|
in !((type == "directory" && (name == ".git" || name == "build")) ||
|
|
|
|
(type == "symlink" && name == "result") ))
|
|
|
|
./.;
|
2017-08-05 18:40:00 +03:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2017-12-16 19:05:14 +03:00
|
|
|
buildInputs = [ qtbase qttranslations qtmultimedia lmdb ];
|
2017-08-05 18:40:00 +03:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp nheko $out/bin/nheko
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
|