Add basic nix expressions
Allows `nix-build` for basic building and `nix-env -f . -i` for installing.
This commit is contained in:
parent
dd30b5d06e
commit
812011ef05
3
default.nix
Normal file
3
default.nix
Normal file
@ -0,0 +1,3 @@
|
||||
with import <nixpkgs> {};
|
||||
qt59.callPackage ./package.nix {}
|
||||
|
13
package.nix
Normal file
13
package.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user