chore(nix): Move files around to conform to new read-tree layout

Broadly speaking, the following things are included:

* there is now a uniform `args` struct that is passed to all
  derivations, package headers have been changed appropriately
* overrides are now loaded from a separate `override` folder just
  using read-tree.nix
* third-party packages have moved into the `third_party` attribute set
This commit is contained in:
Vincent Ambo 2019-11-15 15:26:08 +00:00
parent 4d852e2ef7
commit c1c379848a
19 changed files with 109 additions and 99 deletions

View file

@ -1,17 +1,20 @@
{ stdenv, sbcl, lispPackages, elmPackages, makeWrapper, openssl }:
{ pkgs, ... }:
let frontend = stdenv.mkDerivation {
name = "gemma-frontend";
src = ./frontend;
buildInputs = [ elmPackages.elm ];
let
inherit (pkgs) stdenv sbcl lispPackages elmPackages makeWrapper openssl;
phases = [ "unpackPhase" "buildPhase" ];
buildPhase = ''
mkdir .home && export HOME="$PWD/.home"
mkdir -p $out
elm-make --yes Main.elm --output $out/index.html
'';
};
frontend = stdenv.mkDerivation {
name = "gemma-frontend";
src = ./frontend;
buildInputs = [ elmPackages.elm ];
phases = [ "unpackPhase" "buildPhase" ];
buildPhase = ''
mkdir .home && export HOME="$PWD/.home"
mkdir -p $out
elm-make --yes Main.elm --output $out/index.html
'';
};
in stdenv.mkDerivation rec {
name = "gemma";
src = ./.;

View file

@ -0,0 +1,3 @@
{ pkgs, ... }:
pkgs.third_party.naersk.buildPackage ./. {}

View file

@ -2,9 +2,10 @@
#
# tazblog.nix was generated using cabal2nix.
{ writeShellScriptBin, haskell }:
{ pkgs, ... }:
let
inherit (pkgs) writeShellScriptBin haskell;
tazblog = haskell.packages.ghc865.callPackage ./tazblog.nix {};
wrapper = writeShellScriptBin "tazblog" ''
export PORT=8000