From 8cc74f21d97b5919d21654079f5e5fc3b0bd5d80 Mon Sep 17 00:00:00 2001 From: flupe Date: Wed, 17 Mar 2021 21:32:43 +0100 Subject: [PATCH] fixed nix config --- release.nix | 16 ++++++++++++++++ site.nix | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 release.nix create mode 100644 site.nix diff --git a/release.nix b/release.nix new file mode 100644 index 0000000..2f073b5 --- /dev/null +++ b/release.nix @@ -0,0 +1,16 @@ +let + compiler = "ghc884"; + rev = "b78e08e981a9ad31036fc6c6fb880c1315b4ebea"; + overlay = _: pkgs: { + haskellPackages = pkgs.haskellPackages.override { + overrides = self: super: rec { + achille = self.callPackage ../achille/achille.nix {}; + }; + }; + }; + nixpkgs = + import (builtins.fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz"; + }) { overlays = [ overlay ] ; }; + +in nixpkgs.haskellPackages.callPackage ./site.nix {} diff --git a/site.nix b/site.nix new file mode 100644 index 0000000..05151ff --- /dev/null +++ b/site.nix @@ -0,0 +1,19 @@ +{ mkDerivation, achille, aeson, base, binary, bytestring +, containers, data-default, directory, feed, filepath, lucid +, optparse-applicative, pandoc, pandoc-types, process, sort, stdenv +, text, time, yaml +}: +mkDerivation { + pname = "site"; + version = "0.1.0.0"; + src = ./.; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ + achille aeson base binary bytestring containers data-default + directory feed filepath lucid optparse-applicative pandoc + pandoc-types process sort text time yaml + ]; + license = "unknown"; + hydraPlatforms = stdenv.lib.platforms.none; +}