Add basic nix expressions (#47)

Allows `nix-build` for basic building and `nix-env -f . -i` for installing.
pull/1/head
Jani Mustonen 7 years ago committed by mujx
parent ccc69ece9e
commit 486676f248
  1. 4
      .gitignore
  2. 12
      README.md
  3. 3
      default.nix
  4. 13
      package.nix

4
.gitignore vendored

@ -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

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

@ -0,0 +1,13 @@
{ 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
'';
}
Loading…
Cancel
Save