matrixion/package.nix

19 lines
551 B
Nix
Raw Permalink Normal View History

{ pkgs, stdenv, qtbase, qttranslations, qtmultimedia, lmdb, mkDerivation, cmake }:
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") ))
./.;
nativeBuildInputs = [ cmake ];
buildInputs = [ qtbase qttranslations qtmultimedia lmdb ];
installPhase = ''
mkdir -p $out/bin
cp nheko $out/bin/nheko
'';
}