diff options
author | Adrian Kummerlaender | 2018-05-12 13:23:15 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2018-05-12 13:23:15 +0200 |
commit | d7e8d8e4cdef84ded68795ba0c41bec2f1ee37f2 (patch) | |
tree | e4d11ca21eb1d467e9302b1f7e584c75f30bde2b | |
parent | 57f3ee456b269e9055d8005c288fb8854177a656 (diff) | |
download | SimpleParser-master.tar SimpleParser-master.tar.gz SimpleParser-master.tar.bz2 SimpleParser-master.tar.lz SimpleParser-master.tar.xz SimpleParser-master.tar.zst SimpleParser-master.zip |
-rw-r--r-- | SimpleParser.nix | 18 | ||||
-rw-r--r-- | default.nix | 13 |
2 files changed, 31 insertions, 0 deletions
diff --git a/SimpleParser.nix b/SimpleParser.nix new file mode 100644 index 0000000..1a56271 --- /dev/null +++ b/SimpleParser.nix @@ -0,0 +1,18 @@ +{ stdenv, fetchFromGitHub, cmake, boost, gtest }: + +stdenv.mkDerivation rec { + name = "SimpleParser"; + + src = fetchFromGitHub { + owner = "KnairdA"; + repo = "SimpleParser"; + rev = "v1.1"; + sha256 = "1i38nrb28g1nzhcs0139arz8vvbnli9ryvdl657dqslb6ms1x0g2"; + }; + + buildInputs = [ cmake boost gtest ]; + + meta = with stdenv.lib; { + homepage = https://github.com/KnairdA/SimpleParser/; + }; +} diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..3d82745 --- /dev/null +++ b/default.nix @@ -0,0 +1,13 @@ +with import <nixpkgs> {}; + +stdenv.mkDerivation rec { + name = "env"; + env = buildEnv { name = name; paths = buildInputs; }; + buildInputs = [ + gcc + cmake + boost + git + gtest + ]; +} |