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-04-04 14:01:42 +02:00
|
|
|
# Tracking nixos-20.03 as of 2020-04-04.
|
|
|
|
commit = "b0c285807d6a9f1b7562ec417c24fa1a30ecc31a";
|
2020-01-01 16:49:53 +01:00
|
|
|
nixpkgsSrc = fetchTarball {
|
|
|
|
url = "https://github.com/NixOS/nixpkgs-channels/archive/${commit}.tar.gz";
|
2020-04-04 14:01:42 +02:00
|
|
|
sha256 = "0waapr7aqz0h1fy1fqlx981ygllh91qx9sz1l2j2h59s46cdircl";
|
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
|
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-02-26 15:21:35 +01:00
|
|
|
clang_9
|
|
|
|
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-14 13:47:07 +01:00
|
|
|
emacs26
|
2019-12-09 04:00:56 +01:00
|
|
|
emacs26-nox
|
2020-03-09 00:17:01 +01:00
|
|
|
emacsPackages
|
|
|
|
emacsPackagesGen
|
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
|
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
|
2020-02-26 15:21:35 +01:00
|
|
|
overrideCC
|
|
|
|
overrideCCC
|
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
|
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-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-03-01 02:07:48 +01:00
|
|
|
inherit (nixpkgs) git 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
|
|
|
|
|
|
|
# Make NixOS available
|
|
|
|
nixos = import "${nixpkgsSrc}/nixos";
|
2020-04-17 13:43:25 +02:00
|
|
|
|
|
|
|
# Build a Chromium with VAAPI (hardware-accelerated video decoding)
|
|
|
|
# enabled. This is useful for Stadia on desktop.
|
|
|
|
chromiumVaapi = nixpkgs.chromium.override {
|
|
|
|
useVaapi = true;
|
|
|
|
};
|
2019-12-09 03:52:41 +01:00
|
|
|
}
|