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-18 12:28:58 +01:00
|
|
|
# Tracking nixos-unstable as of 2020-01-18.
|
|
|
|
commit = "c438ce12a858f24c1a2479213eaab751da45fa50";
|
2020-01-01 16:49:53 +01:00
|
|
|
nixpkgsSrc = fetchTarball {
|
|
|
|
url = "https://github.com/NixOS/nixpkgs-channels/archive/${commit}.tar.gz";
|
2020-01-18 12:28:58 +01:00
|
|
|
sha256 = "18m4hxx8y0gfrmhkz29iyc0hmss584m9xhgpk7j7bwjaci0fps4z";
|
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
|
2020-01-12 02:20:45 +01:00
|
|
|
autoconf
|
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
|
2020-01-12 03:48:40 +01:00
|
|
|
bzip2
|
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
|
2020-01-12 03:48:40 +01:00
|
|
|
luajit
|
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
|
2020-01-12 03:48:40 +01:00
|
|
|
xz
|
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 = {
|
2020-01-19 20:34:39 +01:00
|
|
|
inherit (nixpkgs) git guile 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
|
|
|
}
|