From 16cfbd19157df76e7296dddb287412f1099feb33 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 20 May 2022 13:37:43 -0600 Subject: Move static assets to within srv --- static/src/assets/markov/Makefile | 3 -- static/src/assets/markov/Makefile.md | 6 ---- static/src/assets/markov/markov.nix | 63 ---------------------------------- static/src/assets/markov/markov.nix.md | 6 ---- 4 files changed, 78 deletions(-) delete mode 100644 static/src/assets/markov/Makefile delete mode 100644 static/src/assets/markov/Makefile.md delete mode 100644 static/src/assets/markov/markov.nix delete mode 100644 static/src/assets/markov/markov.nix.md (limited to 'static/src/assets/markov') diff --git a/static/src/assets/markov/Makefile b/static/src/assets/markov/Makefile deleted file mode 100644 index 4195baf..0000000 --- a/static/src/assets/markov/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -bundle: - nix-build markov.nix -A nixBundle - ./result/bin/nix-bundle '((import ./markov.nix) {}).entrypoint' '/bin/markov' diff --git a/static/src/assets/markov/Makefile.md b/static/src/assets/markov/Makefile.md deleted file mode 100644 index a680113..0000000 --- a/static/src/assets/markov/Makefile.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -layout: code -include: Makefile -lang: make ---- - diff --git a/static/src/assets/markov/markov.nix b/static/src/assets/markov/markov.nix deleted file mode 100644 index 042ab8d..0000000 --- a/static/src/assets/markov/markov.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ - pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/d50923ab2d308a1ddb21594ba6ae064cab65d8ae.tar.gz") {} -}: - -rec { - - markov = pkgs.buildGoModule { - pname = "markov"; - version = "618b666484566de71f2d59114d011ff4621cf375"; - src = pkgs.fetchFromGitHub { - owner = "mediocregopher"; - repo = "markov"; - rev = "618b666484566de71f2d59114d011ff4621cf375"; - sha256 = "1sx9dr1q3vr3q8nyx3965x6259iyl85591vx815g1xacygv4i4fg"; - }; - vendorSha256 = "048wygrmv26fsnypsp6vxf89z3j0gs9f1w4i63khx7h134yxhbc6"; - }; - - entrypoint = pkgs.writeScriptBin "markov" '' - #!${pkgs.stdenv.shell} - - # On every run we create new, temporary, configuration files for redis and - # circus. To do this we create a new config directory. - markovCfgDir=$(${pkgs.coreutils}/bin/mktemp -d) - echo "generating configuration to $markovCfgDir" - - ${pkgs.coreutils}/bin/cat >$markovCfgDir/redis.conf <$markovCfgDir/circus.ini <