this is broken

This commit is contained in:
Shaun Kerr 2018-12-13 15:22:16 +13:00
parent 5c6a299d13
commit f437eec404
5 changed files with 25 additions and 19 deletions

12
cabal.nix Normal file
View File

@ -0,0 +1,12 @@
{ mkDerivation, base, filepath, hakyll, hakyll-favicon, stdenv }:
mkDerivation {
pname = "rf";
version = "0.1.3.1";
src = ./.;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [ base filepath hakyll hakyll-favicon ];
homepage = "regularflolloping.com";
description = "tA's blog";
license = stdenv.lib.licenses.bsd3;
}

View File

@ -1,12 +1 @@
{ mkDerivation, base, filepath, hakyll, hakyll-favicon, stdenv }:
mkDerivation {
pname = "rf";
version = "0.1.3.1";
src = ./.;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [ base filepath hakyll hakyll-favicon ];
homepage = "regularflolloping.com";
description = "tA's blog";
license = stdenv.lib.licenses.bsd3;
}
with import ./rf.nix; rfBuilt

4
rf.nix
View File

@ -9,7 +9,7 @@ let
haskellPackages = pkgs.haskellPackages.override {
overrides = haskellPackagesNew: haskellPackagesOld: rec {
rf =
haskellPackagesNew.callPackage ./default.nix { };
haskellPackagesNew.callPackage ./cabal.nix { };
};
};
};
@ -19,4 +19,6 @@ in
rec {
inherit pkgs;
rf = pkgs.haskellPackages.rf;
rfBuilt = pkgs.runCommand { buildInputs = [rf]; }
"mkdir $out; cd $out; touch TEST; site rebuild";
}

View File

@ -1,6 +1,8 @@
User-agent: *
Disallow:
#TESTE TESTE
# robots are our pals
# a robot helped deploy this blog!
# i hope we can be friends :)

View File

@ -1,8 +1,9 @@
let
stuff = import ./rf.nix;
in stuff.rf.env.overrideAttrs (drv: {
buildInputs = drv.buildInputs ++ [
stuff.pkgs.imagemagick
stuff.pkgs.inconsolata
];
})
in
stuff.rf.env.overrideAttrs (drv: {
buildInputs = drv.buildInputs ++ [
stuff.pkgs.imagemagick
stuff.pkgs.inconsolata
];
})