From 6af4f31f1aa4546c9d09cbfa6f5840b73986a5c6 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 5 Jun 2018 18:46:59 +0200 Subject: Nixify build process --- pkgs/preview.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pkgs/preview.nix (limited to 'pkgs/preview.nix') diff --git a/pkgs/preview.nix b/pkgs/preview.nix new file mode 100644 index 0000000..352de43 --- /dev/null +++ b/pkgs/preview.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: + +pkgs.writeScriptBin + "preview" + '' + #!/bin/sh + pushd target/99_result + ${pkgs.python3}/bin/python -m http.server 8080 + popd + '' -- cgit v1.2.3