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:
parent
4d852e2ef7
commit
c1c379848a
19 changed files with 109 additions and 99 deletions
|
@ -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 = ./.;
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
pkgs.third_party.naersk.buildPackage ./. {}
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue