Fix & cleanup nix files (#240)

* Fix default.nix

* Cleanup package.nix
This commit is contained in:
Francesco Gazzetta 2018-02-24 22:46:29 +01:00 committed by mujx
parent f525b7e6a9
commit ea268d9761
2 changed files with 3 additions and 6 deletions

View file

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

View file

@ -1,4 +1,4 @@
{ pkgs, stdenv, qtbase, qttranslations, qtmultimedia, lmdb, mkDerivation, cmake }: { stdenv, qtbase, qttranslations, qtmultimedia, lmdb, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.1.0"; version = "0.1.0";
name = "nheko-${version}"; name = "nheko-${version}";
@ -10,9 +10,6 @@ stdenv.mkDerivation rec {
./.; ./.;
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ qtbase qttranslations qtmultimedia lmdb ]; buildInputs = [ qtbase qttranslations qtmultimedia lmdb ];
installPhase = '' installPhase = "install -Dm755 nheko $out/bin/nheko";
mkdir -p $out/bin
cp nheko $out/bin/nheko
'';
} }