about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--machines/profpatsch/katara.nix1
-rw-r--r--pkgs/profpatsch/default.nix5
-rw-r--r--pkgs/profpatsch/nix-http-serve/default.nix11
3 files changed, 15 insertions, 2 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix
index 286103aa..2c73e31a 100644
--- a/machines/profpatsch/katara.nix
+++ b/machines/profpatsch/katara.nix
@@ -129,6 +129,7 @@ in {
         # jid                          # interactive/incremental JSON digger
         # mercurial                    # the other version control system
         telnet                       # tcp debugging
+        pkgs.vuizvui.profpatsch.nix-http-serve # serve nix builds and rebuild on reloads
         pkgs.vuizvui.profpatsch.nman # open man pages in temporary nix shell
         pkgs.vuizvui.profpatsch.warpspeed # trivial http file server
       ];
diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix
index 5257ff50..e7e4d1ac 100644
--- a/pkgs/profpatsch/default.nix
+++ b/pkgs/profpatsch/default.nix
@@ -1,14 +1,15 @@
 { pkgs, callPackage, haskellPackages, droopy, fetchFromGitHub }:
 
 {
+  backlight = callPackage ./backlight { inherit (pkgs.xorg) xbacklight; };
   display-infos = callPackage ./display-infos {};
+  nix-http-serve = callPackage ./nix-http-serve {};
   nman = callPackage ./nman {};
+  show-qr-code = callPackage ./show-qr-code {};
   warpspeed = callPackage ./warpspeed {
     inherit (haskellPackages) ghcWithPackages;
   };
-  show-qr-code = callPackage ./show-qr-code { };
 
-  backlight = callPackage ./backlight { inherit (pkgs.xorg) xbacklight; };
 
   # patched version of droopy, with javascript user-enhancement
   droopy = droopy.overrideDerivation (old: {
diff --git a/pkgs/profpatsch/nix-http-serve/default.nix b/pkgs/profpatsch/nix-http-serve/default.nix
new file mode 100644
index 00000000..be0d8b23
--- /dev/null
+++ b/pkgs/profpatsch/nix-http-serve/default.nix
@@ -0,0 +1,11 @@
+{ stdenv, pkgs, fetchFromGitHub }:
+
+let
+  src = fetchFromGitHub {
+    owner = "Profpatsch";
+    repo = "nix-http-serve";
+    rev = "f1f188da4a78c3d359cc1a92663d82ee8c6acd2f";
+    sha256 = "12qfpzhij0si2p5p8d1iri1iz2kv2bn3jsvqbw32x9gfl728i1bi";
+  };
+
+in (pkgs.callPackage src {}).nix-http-serve