aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-05-12 13:23:15 +0200
committerAdrian Kummerlaender2018-05-12 13:23:15 +0200
commitd7e8d8e4cdef84ded68795ba0c41bec2f1ee37f2 (patch)
treee4d11ca21eb1d467e9302b1f7e584c75f30bde2b
parent57f3ee456b269e9055d8005c288fb8854177a656 (diff)
downloadSimpleParser-d7e8d8e4cdef84ded68795ba0c41bec2f1ee37f2.tar
SimpleParser-d7e8d8e4cdef84ded68795ba0c41bec2f1ee37f2.tar.gz
SimpleParser-d7e8d8e4cdef84ded68795ba0c41bec2f1ee37f2.tar.bz2
SimpleParser-d7e8d8e4cdef84ded68795ba0c41bec2f1ee37f2.tar.lz
SimpleParser-d7e8d8e4cdef84ded68795ba0c41bec2f1ee37f2.tar.xz
SimpleParser-d7e8d8e4cdef84ded68795ba0c41bec2f1ee37f2.tar.zst
SimpleParser-d7e8d8e4cdef84ded68795ba0c41bec2f1ee37f2.zip
Add reproducible dev-env and Nix derivation of the latest releaseHEADmaster
-rw-r--r--SimpleParser.nix18
-rw-r--r--default.nix13
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
+ ];
+}