summary refs log tree commit diff
path: root/default.nix
blob: 7c264653d71b13e2aad4292eecbf5be41c522601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This file sets up the top-level package set by merging all local
# packages into the nixpkgs top-level.

let
  localPkgs = super: pkgs: {
    # Local projects should be added here:
    tazjin.tazblog = import ./services/tazblog { inherit pkgs; };
    tazjin.gemma = import ./services/gemma { inherit pkgs; };

    # Third-party projects (either vendored or modified from nixpkgs)
    # should be added here:
    thirdParty.gitAppraise = pkgs.callPackage ./third_party/go/git-appraise/git-appraise {};
    thirdParty.ghc = pkgs.haskell.packages.ghc865.ghcWithPackages(p: with p; [
      acid-state
      base64-bytestring
      blaze-html
      containers
      cryptohash
      hamlet
      happstack-server
      ixset
      markdown
      mtl
      network
      network-uri
      options
      rss
      safecopy
    ]);
  };

  # TODO(tazjin): It might be preferable to pin a specific commit of
  # nixpkgs, but for now the assumption will be that a single release
  # channel is reasonably stable.
  nixpkgsVersion = "nixos-19.03";
  nixpkgs = "https://github.com/NixOS/nixpkgs-channels/archive/${nixpkgsVersion}.tar.gz";

in { ... } @ args: import (builtins.fetchTarball nixpkgs) (args // {
    overlays = [ localPkgs ];
})