Skip to content
Snippets Groups Projects
Commit 486676f2 authored by Jani Mustonen's avatar Jani Mustonen Committed by mujx
Browse files

Add basic nix expressions (#47)

Allows `nix-build` for basic building and `nix-env -f . -i` for installing.
parent ccc69ece
No related branches found
No related tags found
No related merge requests found
......@@ -71,3 +71,7 @@ Icon
Network Trash Folder
Temporary Items
.apdisk
# Nix
result
......
......@@ -92,6 +92,18 @@ make -C build
The `nheko` binary will be located in the `build` directory.
##### Nix
Download the repo as mentioned above and run
```bash
nix-build
```
in the project folder. This will output a binary to `result/bin/nheko`.
You can also install nheko by running `nix-env -f . -i`
### Contributing
Any kind of contribution to the project is greatly appreciated. You are also
......
with import <nixpkgs> {};
qt59.callPackage ./package.nix {}
{ pkgs, stdenv, qtbase, qttranslations, lmdb, mkDerivation, cmake }:
stdenv.mkDerivation rec {
version = "0.1.0";
name = "nheko-${version}";
src = ./.;
nativeBuildInputs = [ cmake ];
buildInputs = [ qtbase qttranslations lmdb ];
installPhase = ''
mkdir -p $out/bin
cp nheko $out/bin/nheko
'';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment