diff options
author | Vincent Ambo <mail@tazj.in> | 2019-09-02T18·04+0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-02T18·04+0100 |
commit | 2f239426aa4b9783c301a0ecbb4a9a4fd8b8e6dd (patch) | |
tree | 6656efbc41e5dd9c90759b7773538ac064666d54 /infra/nixos/pkgs/gemma.nix | |
parent | 4bd6d528008c6a8a7357a2c40013931800582252 (diff) | |
parent | e2feae3387e5d95715bdd27cd62753a18abf16bd (diff) |
Merge pull request #2 from tazjin/refactor/nixos-nginx-cleanup r/73
Remove old NixOS config and move oslo.pub
Diffstat (limited to 'infra/nixos/pkgs/gemma.nix')
-rw-r--r-- | infra/nixos/pkgs/gemma.nix | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/infra/nixos/pkgs/gemma.nix b/infra/nixos/pkgs/gemma.nix deleted file mode 100644 index 4e96734794ff..000000000000 --- a/infra/nixos/pkgs/gemma.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ pkgs ? import <nixpkgs> {} }: - -with pkgs; stdenv.mkDerivation rec { - name = "gemma"; - - src = fetchFromGitHub { - owner = "tazjin"; - repo = "gemma"; - rev = "61be253d6baa99f0a2208425b8a03b444bb1b184"; - sha256 = "0vbmz2aphcida728rc0z3k7gychs4w1778vsjbrs0ljk9qgbmyr5"; - }; - - buildInputs = with lispPackages; [ - sbcl - quicklisp - hunchentoot - cl-json - local-time - elmPackages.elm - pkgconfig - ]; - - # The build phase has three distinct things it needs to do: - # - # 1. "Compile" the Elm source into something useful to browsers. - # - # 2. Configure the Lisp part of the application to serve the compiled Elm - # - # 3. Build (and don't strip!) an executable out of the Lisp backend. - buildPhase = '' - mkdir -p $out/share/gemma $out/bin - mkdir .home && export HOME="$PWD/.home" - - # Build Elm - cd frontend - elm-make --yes Main.elm --output $out/share/gemma/index.html - - # Build Lisp - cd $src - quicklisp init - env GEMMA_BIN_TARGET=$out/bin/gemma sbcl --load build.lisp - ''; - - installPhase = "true"; - - # Stripping an SBCL executable removes the application, which is unfortunate. - dontStrip = true; - - meta = with stdenv.lib; { - description = "Tool for tracking recurring tasks"; - homepage = "https://github.com/tazjin/gemma"; - license = licenses.gpl3; - }; -} |