Browse Source

Add development environment for NixOS

rexim 5 years ago
parent
commit
a2ae23723d
2 changed files with 16 additions and 1 deletions
  1. 3 1
      README.md
  2. 13 0
      default.nix

+ 3 - 1
README.md

@@ -14,8 +14,10 @@ changed at any moment or stop working at all.**
 $ # Install Dependencies
 $ ## Debian
 $ sudo apt-get install libfreetype6-dev libgif-dev libpng-dev libavutil-dev libavcodec-dev
+$ ## NixOS
+$ nix-shell
 $ ## (add your distro here)
 $ # Build
 $ make            # build vodus executable
-$ make render     # test rendering (produces output.mp4 file)
+$ make render     # test rendering (produces output.mpeg file)
 ```

+ 13 - 0
default.nix

@@ -0,0 +1,13 @@
+with import <nixpkgs> {}; {
+    vodusEnv = gcc8Stdenv.mkDerivation {
+        name = "vodus-env";
+        buildInputs = [ stdenv
+                        gcc
+                        gdb
+                        pkgconfig
+                        freetype
+                        giflib
+                        ffmpeg-full
+                      ];
+    };
+}