aboutsummaryrefslogtreecommitdiff
path: root/pkgs/preview.nix
blob: 352de435def628f60012ee7bed224a44d2f54275 (plain)
1
2
3
4
5
6
7
8
9
10
{ pkgs, ... }:

pkgs.writeScriptBin
  "preview"
  ''
    #!/bin/sh
    pushd target/99_result
    ${pkgs.python3}/bin/python -m http.server 8080
    popd
  ''