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*.
|
2020-02-21 13:47:29 +01:00
|
|
|
{ ... }:
|
2019-12-09 03:52:41 +01:00
|
|
|
|
|
|
|
let
|
2020-05-21 05:50:34 +02:00
|
|
|
# Tracking nixos-unstable as of 2020-05-21.
|
2020-05-26 12:52:30 +02:00
|
|
|
nixpkgsCommit = "0f5ce2fac0c726036ca69a5524c59a49e2973dd4";
|
2020-01-01 16:49:53 +01:00
|
|
|
nixpkgsSrc = fetchTarball {
|
2020-05-26 12:52:30 +02:00
|
|
|
url = "https://github.com/NixOS/nixpkgs-channels/archive/${nixpkgsCommit}.tar.gz";
|
2020-05-21 05:50:34 +02:00
|
|
|
sha256 = "0nkk492aa7pr0d30vv1aw192wc16wpa1j02925pldc09s9m9i0r3";
|
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;
|
|
|
|
};
|
|
|
|
|
2020-05-22 19:55:15 +02:00
|
|
|
# Tracking nixos-20.03 as of 2020-05-22
|
|
|
|
stableCommit = "48723f48ab92381f0afd50143f38e45cf3080405";
|
|
|
|
stableNixpkgsSrc = fetchTarball {
|
2020-05-22 21:46:38 +02:00
|
|
|
url = "https://github.com/NixOS/nixpkgs-channels/archive/${stableCommit}.tar.gz";
|
|
|
|
sha256 = "0h3b3l867j3ybdgimfn76lw7w6yjhszd5x02pq5827l659ihcf53";
|
2020-05-22 19:55:15 +02:00
|
|
|
};
|
|
|
|
stableNixpkgs = import stableNixpkgsSrc {};
|
|
|
|
|
2019-12-09 03:52:41 +01:00
|
|
|
exposed = {
|
2020-05-22 19:55:15 +02:00
|
|
|
# Inherit the packages from nixos-usntable that should be available inside
|
2019-12-09 03:52:41 +01:00
|
|
|
# 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
|
2020-02-10 23:15:44 +01:00
|
|
|
buildGoModule
|
2020-02-26 15:21:35 +01:00
|
|
|
buildGoPackage
|
2020-01-12 03:48:40 +01:00
|
|
|
bzip2
|
2020-02-26 15:21:35 +01:00
|
|
|
c-ares
|
2019-12-09 04:19:03 +01:00
|
|
|
cacert
|
|
|
|
cachix
|
2020-04-21 04:38:30 +02:00
|
|
|
cairo
|
2019-12-09 03:52:41 +01:00
|
|
|
cargo
|
2019-12-18 17:22:56 +01:00
|
|
|
cgit
|
2020-05-19 21:47:23 +02:00
|
|
|
clang-tools
|
2020-05-08 19:07:47 +02:00
|
|
|
clangStdenv
|
2020-05-22 19:29:47 +02:00
|
|
|
clang_10
|
2020-02-26 15:21:35 +01:00
|
|
|
cmake
|
2019-12-09 04:19:03 +01:00
|
|
|
coreutils
|
2020-04-04 03:26:55 +02:00
|
|
|
cudatoolkit
|
2019-12-09 03:52:41 +01:00
|
|
|
darwin
|
2019-12-09 04:19:03 +01:00
|
|
|
dockerTools
|
2019-12-09 03:52:41 +01:00
|
|
|
fetchFromGitHub
|
2019-12-16 04:14:21 +01:00
|
|
|
fetchurl
|
2020-02-17 01:51:13 +01:00
|
|
|
fetchzip
|
2019-12-21 02:07:29 +01:00
|
|
|
fira
|
|
|
|
fira-code
|
|
|
|
fira-mono
|
2020-04-21 04:38:30 +02:00
|
|
|
fontconfig
|
|
|
|
freetype
|
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
|
2020-04-21 04:38:30 +02:00
|
|
|
graphviz
|
2020-02-26 15:21:35 +01:00
|
|
|
grpc
|
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
|
2020-04-21 04:38:30 +02:00
|
|
|
jetbrains-mono
|
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
|
2020-01-22 02:27:21 +01:00
|
|
|
libredirect
|
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
|
2020-05-17 03:49:13 +02:00
|
|
|
meson
|
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
|
2020-05-17 03:49:13 +02:00
|
|
|
ninja
|
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
|
2020-02-26 15:21:35 +01:00
|
|
|
overrideCC
|
2020-02-08 14:32:15 +01:00
|
|
|
pandoc
|
2019-12-20 23:19:52 +01:00
|
|
|
parallel
|
2019-12-20 21:03:36 +01:00
|
|
|
pkgconfig
|
2020-03-01 02:06:00 +01:00
|
|
|
pounce
|
2019-12-09 04:36:50 +01:00
|
|
|
protobuf
|
2020-04-25 18:57:33 +02:00
|
|
|
python3
|
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
|
2020-04-20 00:21:51 +02:00
|
|
|
sqlite
|
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-05-26 00:36:20 +02:00
|
|
|
xorg
|
2020-01-12 03:48:40 +01:00
|
|
|
xz
|
2019-12-16 04:14:21 +01:00
|
|
|
zlib
|
|
|
|
zstd;
|
2020-05-17 17:27:36 +02:00
|
|
|
|
2020-05-22 19:55:15 +02:00
|
|
|
# Inherit packages that should come from a stable channel
|
|
|
|
inherit (stableNixpkgs)
|
|
|
|
emacs26
|
|
|
|
emacs26-nox
|
|
|
|
emacsPackages
|
|
|
|
emacsPackagesGen;
|
|
|
|
|
2020-05-17 17:27:36 +02:00
|
|
|
# Required by //third_party/nix
|
|
|
|
inherit (nixpkgs)
|
|
|
|
aws-sdk-cpp
|
|
|
|
bison
|
|
|
|
boehmgc
|
|
|
|
boost # urgh
|
|
|
|
brotli
|
2020-05-17 22:25:50 +02:00
|
|
|
busybox-sandbox-shell
|
2020-05-17 17:27:36 +02:00
|
|
|
curl
|
|
|
|
docbook5
|
|
|
|
docbook_xsl_ns
|
|
|
|
editline
|
|
|
|
flex
|
|
|
|
libseccomp
|
|
|
|
libsodium
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
mercurial
|
|
|
|
perl
|
|
|
|
perlPackages
|
|
|
|
utillinuxMinimal;
|
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-05-26 12:52:30 +02:00
|
|
|
inherit nixpkgsCommit nixpkgsSrc stableNixpkgsSrc;
|
2019-12-27 18:12:32 +01:00
|
|
|
|
|
|
|
# Packages to be overridden
|
|
|
|
originals = {
|
2020-05-18 03:39:26 +02:00
|
|
|
inherit (nixpkgs) abseil-cpp git glog notmuch;
|
2020-04-04 03:26:55 +02:00
|
|
|
ffmpeg = nixpkgs.ffmpeg-full;
|
2019-12-27 18:12:32 +01:00
|
|
|
};
|
2020-01-04 16:08:49 +01:00
|
|
|
|
2020-05-22 23:57:46 +02:00
|
|
|
# Use LLVM 10
|
|
|
|
llvmPackages = nixpkgs.llvmPackages_10;
|
|
|
|
|
2020-01-04 16:08:49 +01:00
|
|
|
# Make NixOS available
|
2020-05-22 21:46:38 +02:00
|
|
|
nixos = import "${stableNixpkgsSrc}/nixos";
|
2019-12-09 03:52:41 +01:00
|
|
|
}
|