-
-
Save cleverca22/e66e9ab02509271048f3e7026c7dc32d to your computer and use it in GitHub Desktop.
Nix Stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Initial rf.cabal generated by cabal init. For further documentation, | |
-- see http://haskell.org/cabal/users-guide/ | |
name: rf | |
version: 0.1.3.1 | |
synopsis: tA's blog | |
-- description: | |
homepage: regularflolloping.com | |
license: BSD3 | |
license-file: LICENSE | |
author: Shaun Kerr | |
maintainer: s@p7.co.nz | |
-- copyright: | |
category: Web | |
build-type: Simple | |
extra-source-files: ChangeLog.md | |
cabal-version: >=1.10 | |
executable site | |
main-is: site.hs | |
-- other-modules: | |
-- other-extensions: | |
build-depends: base | |
, hakyll | |
, filepath | |
, hakyll-favicon | |
-- hs-source-dirs: | |
-- extra-libraries: imagemagick | |
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
config = { | |
packageOverrides = pkgs: rec { | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = haskellPackagesNew: haskellPackagesOld: rec { | |
rf = | |
haskellPackagesNew.callPackage ./default.nix {}; | |
}; | |
}; | |
}; | |
}; | |
pkgs = import <nixpkgs> { inherit config; }; | |
in | |
rec { | |
inherit pkgs; | |
rf = pkgs.haskellPackages.rf; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
stuff = import ./rf.nix; | |
in stuff.rf.env.overrideAttrs (drv: { | |
buildInputs = drv.buildInputs ++ [ stuff.pkgs.imagemagick ]; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment