2020-11-23 14:22:51 -08:00
|
|
|
{ pkgs, lib, ... }:
|
2019-12-25 15:20:36 -08:00
|
|
|
|
2020-12-02 08:44:56 -08:00
|
|
|
let unstablePkgs = import <nixos-unstable> { };
|
2020-11-23 14:22:51 -08:00
|
|
|
|
|
|
|
in {
|
2019-12-25 15:20:36 -08:00
|
|
|
nixpkgs.config.packageOverrides = pkgs: rec {
|
2020-11-23 14:22:51 -08:00
|
|
|
|
2020-01-15 09:24:11 -08:00
|
|
|
letsencrypt-ca = import ./letsencrypt-ca.nix {
|
|
|
|
stdenv = pkgs.stdenv;
|
|
|
|
fetchurl = builtins.fetchurl;
|
|
|
|
};
|
|
|
|
|
2021-02-23 12:58:29 -08:00
|
|
|
minecraft-current = pkgs.minecraft-server_1_16_4;
|
|
|
|
|
2021-01-06 10:51:40 -08:00
|
|
|
minecraft-server_1_16_4 = pkgs.minecraft-server.overrideAttrs
|
|
|
|
(oldAttrs: rec {
|
|
|
|
version = "1.15.1";
|
|
|
|
src = builtins.fetchurl {
|
|
|
|
url =
|
|
|
|
"https://launcher.mojang.com/v1/objects/35139deedbd5182953cf1caa23835da59ca3d7cd/server.jar";
|
2021-01-14 16:57:21 -08:00
|
|
|
sha256 = "01i5nd03sbnffbyni1fa6hsg5yll2h19vfrpcydlivx10gck0ka4";
|
2021-01-06 10:51:40 -08:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2020-12-02 08:44:56 -08:00
|
|
|
minecraft-server_1_15_1 = pkgs.minecraft-server.overrideAttrs
|
|
|
|
(oldAttrs: rec {
|
|
|
|
version = "1.15.1";
|
|
|
|
src = builtins.fetchurl {
|
|
|
|
url =
|
|
|
|
"https://launcher.mojang.com/v1/objects/4d1826eebac84847c71a77f9349cc22afd0cf0a1/server.jar";
|
|
|
|
sha256 =
|
|
|
|
"a0c062686bee5a92d60802ca74d198548481802193a70dda6d5fe7ecb7207993";
|
|
|
|
};
|
|
|
|
});
|
2020-01-15 09:24:11 -08:00
|
|
|
|
2020-07-20 10:12:09 -07:00
|
|
|
# DON'T LEAVE THE HASH--Nix will think the package hasn't changed
|
|
|
|
minecraft-server_1_16_1 = let
|
|
|
|
version = "1.16.1";
|
2020-12-02 08:44:56 -08:00
|
|
|
url =
|
|
|
|
"https://launcher.mojang.com/v1/objects/a412fd69db1f81db3f511c1463fd304675244077/server.jar";
|
2020-07-20 10:12:09 -07:00
|
|
|
sha256 = "0nwkdig6yw4cnm2ld78z4j4xzhbm1rwv55vfxz0gzhsbf93xb0i7";
|
|
|
|
in (pkgs.minecraft-server.overrideAttrs (oldAttrs: rec {
|
|
|
|
name = "minecraft-server-${version}";
|
|
|
|
inherit version;
|
2020-12-02 08:44:56 -08:00
|
|
|
src = pkgs.fetchurl { inherit url sha256; };
|
2020-07-20 10:12:09 -07:00
|
|
|
}));
|
|
|
|
|
2020-09-29 09:08:48 -07:00
|
|
|
minecraft-server_1_16_2 = let
|
|
|
|
version = "1.16.2";
|
2020-12-02 08:44:56 -08:00
|
|
|
url =
|
|
|
|
"https://launcher.mojang.com/v1/objects/c5f6fb23c3876461d46ec380421e42b289789530/server.jar";
|
2020-09-29 09:08:48 -07:00
|
|
|
sha256 = "0fbghwrj9b2y9lkn2b17id4ghglwvyvcc8065h582ksfz0zys0i9";
|
|
|
|
in (pkgs.minecraft-server.overrideAttrs (oldAttrs: rec {
|
|
|
|
name = "minecraft-server-${version}";
|
|
|
|
inherit version;
|
2020-12-02 08:44:56 -08:00
|
|
|
src = pkgs.fetchurl { inherit url sha256; };
|
2020-09-29 09:08:48 -07:00
|
|
|
}));
|
|
|
|
|
2020-01-15 09:24:11 -08:00
|
|
|
postgresql_11_gssapi = pkgs.postgresql_11.overrideAttrs (oldAttrs: rec {
|
|
|
|
configureFlags = oldAttrs.configureFlags ++ [ "--with-gssapi" ];
|
|
|
|
buildInputs = oldAttrs.buildInputs ++ [ pkgs.krb5 ];
|
|
|
|
});
|
2020-06-06 18:58:13 -07:00
|
|
|
|
|
|
|
postgresql_12_gssapi = pkgs.postgresql_12.overrideAttrs (oldAttrs: rec {
|
|
|
|
configureFlags = oldAttrs.configureFlags ++ [ "--with-gssapi" ];
|
|
|
|
buildInputs = oldAttrs.buildInputs ++ [ pkgs.krb5 ];
|
|
|
|
});
|
2020-06-27 16:47:15 -07:00
|
|
|
|
2021-02-25 12:45:50 -08:00
|
|
|
gtk3-x11 = pkgs.gtk3.overrideAttrs (oldAttrs: rec {
|
|
|
|
buildInputs = oldAttrs.buildInputs ++ [ pkgs.cmake ];
|
|
|
|
});
|
|
|
|
|
2020-06-06 19:24:59 -07:00
|
|
|
hll2380dw-cups = import ./hll2380dw-cups.nix {
|
2020-12-02 08:44:56 -08:00
|
|
|
inherit (pkgs)
|
|
|
|
stdenv fetchurl makeWrapper cups dpkg a2ps ghostscript gnugrep gnused
|
|
|
|
coreutils file perl which;
|
2020-06-06 19:24:59 -07:00
|
|
|
};
|
2020-07-16 13:46:14 -07:00
|
|
|
|
2020-11-16 12:39:37 -08:00
|
|
|
backplane-dns-client = import ./backplane-dns-client.nix {
|
|
|
|
pkgs = pkgs;
|
|
|
|
stdenv = pkgs.stdenv;
|
|
|
|
fetchgit = pkgs.fetchgit;
|
|
|
|
bundlerEnv = pkgs.bundlerEnv;
|
|
|
|
};
|
|
|
|
|
2020-07-16 13:46:14 -07:00
|
|
|
cl-gemini = import ./cl-gemini.nix {
|
|
|
|
pkgs = pkgs;
|
|
|
|
stdenv = pkgs.stdenv;
|
|
|
|
fetchgit = pkgs.fetchgit;
|
|
|
|
};
|
2020-09-29 09:08:48 -07:00
|
|
|
|
|
|
|
fudo-service = import ./fudo-service.nix {
|
|
|
|
fetchgit = pkgs.fetchgit;
|
|
|
|
pkgs = pkgs;
|
|
|
|
};
|
2020-11-16 12:39:37 -08:00
|
|
|
|
|
|
|
google-photos-uploader = pkgs.buildGoModule rec {
|
|
|
|
pname = "google-photos-uploader";
|
|
|
|
version = "1.6.1";
|
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "int128";
|
|
|
|
repo = "gpup";
|
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "0zdkd5iwkp270p0810dijg25djkzrsdyqiqaqv6rzzgzj5d5pwhm";
|
|
|
|
};
|
|
|
|
|
|
|
|
modSha256 = "15ndc6jq51f9mz1v089416x2lxrifp3wglbxpff8b055jj07hbkw";
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
meta = with pkgs.lib; {
|
|
|
|
description = "Google photos uploader, written in Go.";
|
2020-12-02 08:44:56 -08:00
|
|
|
homepage = "https://github.com/int128/gpup";
|
2020-11-16 12:39:37 -08:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
};
|
2020-11-24 12:01:03 -08:00
|
|
|
|
2020-12-02 08:44:56 -08:00
|
|
|
doomEmacsInit = pkgs.writeShellScriptBin "doom-emacs-init.sh" ''
|
|
|
|
DOOMDIR=$HOME/.emacs.d
|
|
|
|
|
|
|
|
function clone_into() {
|
|
|
|
${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs.git $1
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ ! -d "$DOOMDIR" ]; then
|
|
|
|
clone_into $DOOMDIR
|
|
|
|
$DOOMDIR/bin/doom -y install
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f $DOOMDIR/bin/doom ]; then
|
|
|
|
# legacy...move to a backup
|
|
|
|
mv $HOME/.emacs.d $HOME/.emacs.d.bak
|
2021-01-06 10:53:55 -08:00
|
|
|
mv $HOME/.emacs $HOME/.emacs.bak
|
2020-12-02 08:44:56 -08:00
|
|
|
clone_into $DOOMDIR
|
|
|
|
$DOOMDIR/bin/doom -y install
|
|
|
|
fi
|
|
|
|
|
|
|
|
$DOOMDIR/bin/doom sync
|
|
|
|
|
|
|
|
#if ${pkgs.emacs}/bin/emacsclient -ca false -e '(delete-frame)'; then
|
|
|
|
# # emacs is running
|
|
|
|
# ${pkgs.emacs}/bin/emacsclient -e '(doom/reload)'
|
|
|
|
#fi
|
|
|
|
'';
|
|
|
|
|
2020-11-27 09:36:10 -08:00
|
|
|
localLispPackages = (import ./lisp {
|
2020-11-24 12:01:03 -08:00
|
|
|
inherit lib;
|
|
|
|
pkgs = unstablePkgs;
|
2020-11-27 09:36:10 -08:00
|
|
|
}) // unstablePkgs.lispPackages;
|
|
|
|
|
|
|
|
backplane-dns-server = import ./backplane-dns-server.nix {
|
|
|
|
inherit localLispPackages;
|
|
|
|
pkgs = unstablePkgs;
|
2020-11-24 12:01:03 -08:00
|
|
|
};
|
2020-12-02 08:44:56 -08:00
|
|
|
|
|
|
|
doom-emacs-config = pkgs.fetchgit {
|
|
|
|
url = "https://git.fudo.org/niten/doom-emacs.git";
|
2021-01-22 09:17:09 -08:00
|
|
|
rev = "bc8224ec110e8a69a40d1521665884c4b14bb2b9";
|
|
|
|
sha256 = "09j3sfdcfn0qi34qspvcmm201klai543i21zx8rixx9qcc40xm7q";
|
2020-12-02 08:44:56 -08:00
|
|
|
};
|
2021-01-14 16:57:21 -08:00
|
|
|
|
2021-01-20 19:51:43 -08:00
|
|
|
vanilla-forum = import ./vanilla-forum.nix { pkgs = pkgs; };
|
2019-12-25 15:20:36 -08:00
|
|
|
};
|
|
|
|
}
|