2019-12-09 03:52:41 +01:00
|
|
|
# This file controls the import of external dependencies (i.e.
|
|
|
|
# third-party code) into my package tree.
|
|
|
|
#
|
|
|
|
# This includes *all packages needed from nixpkgs*.
|
|
|
|
|
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
2020-01-05 17:58:13 +01:00
|
|
|
commit = "e0470e11c7a02f9e6e70f5ec5e1d9470c742b396";
|
2020-01-01 16:49:53 +01:00
|
|
|
nixpkgsSrc = fetchTarball {
|
|
|
|
url = "https://github.com/NixOS/nixpkgs-channels/archive/${commit}.tar.gz";
|
2020-01-05 17:58:13 +01:00
|
|
|
sha256 = "1amczhr8m7lvxnxzwhfamz4ga78sgnyzdfr759iq26azkh6fa03a";
|
2019-12-09 03:52:41 +01:00
|
|
|
};
|
2020-01-01 16:49:53 +01:00
|
|
|
nixpkgs = import nixpkgsSrc {
|
2019-12-09 03:52:41 +01:00
|
|
|
config.allowUnfree = true;
|
|
|
|
config.allowBroken = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
exposed = {
|
|
|
|
# Inherit the packages from nixpkgs that should be available inside
|
|
|
|
# of the repo. They become available under `pkgs.third_party.<name>`
|
|
|
|
inherit (nixpkgs)
|
2020-01-01 16:54:07 +01:00
|
|
|
age
|
2019-12-09 04:19:03 +01:00
|
|
|
bashInteractive
|
2019-12-21 05:55:10 +01:00
|
|
|
bat
|
2019-12-09 03:52:41 +01:00
|
|
|
buildGoPackage
|
2019-12-09 04:19:03 +01:00
|
|
|
cacert
|
|
|
|
cachix
|
2019-12-09 03:52:41 +01:00
|
|
|
cargo
|
2019-12-18 17:22:56 +01:00
|
|
|
cgit
|
2019-12-09 04:19:03 +01:00
|
|
|
coreutils
|
2019-12-09 03:52:41 +01:00
|
|
|
darwin
|
2019-12-09 04:19:03 +01:00
|
|
|
dockerTools
|
2019-12-14 13:47:07 +01:00
|
|
|
emacs26
|
2019-12-09 04:00:56 +01:00
|
|
|
emacs26-nox
|
2019-12-14 13:47:07 +01:00
|
|
|
emacsPackagesNg
|
|
|
|
emacsPackagesNgGen
|
2019-12-09 03:52:41 +01:00
|
|
|
fetchFromGitHub
|
2019-12-16 04:14:21 +01:00
|
|
|
fetchurl
|
2019-12-21 02:07:29 +01:00
|
|
|
fira
|
|
|
|
fira-code
|
|
|
|
fira-mono
|
2019-12-23 13:26:30 +01:00
|
|
|
gettext
|
2019-12-16 04:14:21 +01:00
|
|
|
glibc
|
2019-12-09 04:19:03 +01:00
|
|
|
gnutar
|
|
|
|
go
|
2019-12-09 03:52:41 +01:00
|
|
|
google-cloud-sdk
|
2019-12-09 04:19:03 +01:00
|
|
|
gzip
|
2019-12-09 03:52:41 +01:00
|
|
|
haskell
|
2019-12-09 04:19:03 +01:00
|
|
|
iana-etc
|
2020-01-05 18:09:21 +01:00
|
|
|
imagemagickBig
|
2019-12-09 03:52:41 +01:00
|
|
|
jq
|
2019-12-09 05:27:40 +01:00
|
|
|
kontemplate
|
2019-12-09 03:52:41 +01:00
|
|
|
lib
|
2019-12-09 04:36:50 +01:00
|
|
|
lispPackages
|
2019-12-09 03:52:41 +01:00
|
|
|
llvmPackages
|
2019-12-21 02:07:29 +01:00
|
|
|
luatex
|
|
|
|
makeFontsConf
|
2019-12-09 04:36:50 +01:00
|
|
|
makeWrapper
|
2019-12-09 04:19:03 +01:00
|
|
|
mdbook
|
2019-12-20 22:17:51 +01:00
|
|
|
mime-types
|
2019-12-18 20:08:10 +01:00
|
|
|
moreutils
|
|
|
|
nano
|
2019-12-20 16:48:22 +01:00
|
|
|
nginx
|
2019-12-20 21:03:36 +01:00
|
|
|
nix
|
2019-12-09 04:19:03 +01:00
|
|
|
openssh
|
2019-12-09 04:36:50 +01:00
|
|
|
openssl
|
2019-12-20 23:19:52 +01:00
|
|
|
parallel
|
2019-12-20 21:03:36 +01:00
|
|
|
pkgconfig
|
2019-12-09 04:36:50 +01:00
|
|
|
protobuf
|
2019-12-23 12:20:31 +01:00
|
|
|
python3Packages
|
2019-12-09 03:52:41 +01:00
|
|
|
remarshal
|
2019-12-14 18:47:54 +01:00
|
|
|
rink
|
2019-12-13 13:11:50 +01:00
|
|
|
ripgrep
|
2019-12-09 03:52:41 +01:00
|
|
|
rsync
|
|
|
|
runCommand
|
2020-01-08 19:40:53 +01:00
|
|
|
runCommandNoCC
|
2019-12-09 04:19:03 +01:00
|
|
|
rustPlatform
|
2019-12-09 03:52:41 +01:00
|
|
|
rustc
|
2019-12-09 04:36:50 +01:00
|
|
|
sbcl
|
2019-12-09 03:52:41 +01:00
|
|
|
stdenv
|
2019-12-14 18:40:21 +01:00
|
|
|
stern
|
2019-12-09 03:52:41 +01:00
|
|
|
symlinkJoin
|
2019-12-20 21:03:36 +01:00
|
|
|
systemd
|
2019-12-19 15:48:22 +01:00
|
|
|
tdlib
|
2019-12-09 04:19:03 +01:00
|
|
|
terraform_0_12
|
2019-12-21 02:07:29 +01:00
|
|
|
texlive
|
2019-12-18 17:22:56 +01:00
|
|
|
thttpd
|
2019-12-09 03:52:41 +01:00
|
|
|
tree
|
2019-12-21 03:59:12 +01:00
|
|
|
writeShellScript
|
2019-12-09 03:52:41 +01:00
|
|
|
writeShellScriptBin
|
2019-12-09 04:00:56 +01:00
|
|
|
writeText
|
2019-12-09 04:19:03 +01:00
|
|
|
writeTextFile
|
2019-12-16 04:14:21 +01:00
|
|
|
zlib
|
|
|
|
zstd;
|
2019-12-09 03:52:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
in exposed // {
|
|
|
|
callPackage = nixpkgs.lib.callPackageWith exposed;
|
2019-12-27 18:12:32 +01:00
|
|
|
|
2019-12-09 03:52:41 +01:00
|
|
|
# Provide the source code of nixpkgs, but do not provide an imported
|
|
|
|
# version of it.
|
2020-01-01 16:49:53 +01:00
|
|
|
inherit nixpkgsSrc;
|
2019-12-27 18:12:32 +01:00
|
|
|
|
|
|
|
# Packages to be overridden
|
|
|
|
originals = {
|
2019-12-28 01:38:34 +01:00
|
|
|
inherit (nixpkgs) git notmuch;
|
2019-12-27 18:12:32 +01:00
|
|
|
};
|
2020-01-04 16:08:49 +01:00
|
|
|
|
|
|
|
# Make NixOS available
|
|
|
|
nixos = import "${nixpkgsSrc}/nixos";
|
2019-12-09 03:52:41 +01:00
|
|
|
}
|