Add basic nix expressions

Allows `nix-build` for basic building and `nix-env -f . -i` for installing.
This commit is contained in:
Jani Mustonen 2017-07-30 23:10:23 +03:00
parent dd30b5d06e
commit 812011ef05
2 changed files with 16 additions and 0 deletions

3
default.nix Normal file
View File

@ -0,0 +1,3 @@
with import <nixpkgs> {};
qt59.callPackage ./package.nix {}

13
package.nix Normal file
View File

@ -0,0 +1,13 @@
{ pkgs, stdenv, qtbase, qttranslations, mkDerivation, cmake }:
stdenv.mkDerivation rec {
version = "0.1.0";
name = "nheko-${version}";
src = ./.;
nativeBuildInputs = [ cmake ];
buildInputs = [ qtbase qttranslations ];
installPhase = ''
mkdir -p $out/bin
cp nheko $out/bin/nheko
'';
}