Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Last active September 4, 2018 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/e66e9ab02509271048f3e7026c7dc32d to your computer and use it in GitHub Desktop.
Save cleverca22/e66e9ab02509271048f3e7026c7dc32d to your computer and use it in GitHub Desktop.
Nix Stuff
{ 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;
}
-- 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
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;
}
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