2019-02-03 14:26:23 +01:00
|
|
|
self: super:
|
|
|
|
|
2019-01-27 00:26:48 +01:00
|
|
|
let
|
2019-07-17 10:02:36 +02:00
|
|
|
nixpkgs-master = import <nixpkgs-master> {};
|
|
|
|
|
2019-02-03 14:26:23 +01:00
|
|
|
# one application requires php5
|
|
|
|
nixpkgsWithPhp5 = super.fetchFromGitHub {
|
|
|
|
owner = "nixos";
|
|
|
|
repo = "nixpkgs-channels";
|
|
|
|
rev = "846d8f8305192dcc3a63139102698b4ac6b9ef9f";
|
|
|
|
sha256 = "1qifgc1q2i4g0ivpfjnxp4jl2cc82gfjws08dsllgw7q7kw4b4rb";
|
|
|
|
};
|
2019-01-27 00:26:48 +01:00
|
|
|
|
2019-02-03 14:26:23 +01:00
|
|
|
in {
|
2019-09-06 12:36:21 +02:00
|
|
|
# alacritty = nixpkgs-master.alacritty;
|
|
|
|
alacritty = super.stdenv.mkDerivation {
|
|
|
|
name = "alacritty-custom";
|
|
|
|
buildInputs = [ super.makeWrapper ];
|
|
|
|
phases = "installPhase";
|
|
|
|
installPhase = ''
|
|
|
|
makeWrapper ${nixpkgs-master.alacritty}/bin/alacritty $out/bin/alacritty \
|
|
|
|
--set-default WINIT_HIDPI_FACTOR 1.0
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2019-01-27 00:26:48 +01:00
|
|
|
duplicacy = super.callPackage ./pkgs/duplicacy {};
|
2019-01-26 23:59:31 +01:00
|
|
|
just = super.callPackage ./pkgs/just.nix {};
|
2019-01-27 00:26:48 +01:00
|
|
|
mfcl3770cdw = super.callPackage ./pkgs/mfcl3770cdw.nix {};
|
|
|
|
staruml = super.callPackage ./pkgs/staruml.nix { inherit (super.gnome2) GConf; libgcrypt = super.libgcrypt_1_5; };
|
|
|
|
|
2019-07-17 10:02:36 +02:00
|
|
|
roxterm = super.stdenv.mkDerivation {
|
|
|
|
name = "roxterm-custom";
|
|
|
|
buildInputs = [ super.makeWrapper ];
|
|
|
|
phases = "installPhase";
|
|
|
|
installPhase = ''
|
|
|
|
makeWrapper ${super.roxterm}/bin/roxterm $out/bin/roxterm \
|
|
|
|
--add-flags "--separate"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2019-01-27 00:26:48 +01:00
|
|
|
busyboxStatic = super.busybox.override {
|
|
|
|
enableStatic = true;
|
|
|
|
extraConfig = ''
|
|
|
|
CONFIG_STATIC y
|
|
|
|
CONFIG_INSTALL_APPLET_DONT y
|
|
|
|
CONFIG_INSTALL_APPLET_SYMLINKS n
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
dropbearStatic = super.dropbear.override {
|
|
|
|
enableStatic = true;
|
|
|
|
};
|
2019-02-03 14:26:23 +01:00
|
|
|
|
|
|
|
php56 = (super.callPackages
|
|
|
|
"${nixpkgsWithPhp5}/pkgs/development/interpreters/php/default.nix" {})
|
|
|
|
.php56.overrideAttrs(drv: rec {
|
|
|
|
# See https://secure.php.net/ChangeLog-5.php
|
|
|
|
version = "5.6.40";
|
|
|
|
name = "php-${version}";
|
|
|
|
|
|
|
|
sha256 = "005s7w167dypl41wlrf51niryvwy1hfv53zxyyr3lm938v9jbl7z";
|
|
|
|
src = super.fetchurl {
|
|
|
|
url = "http://www.php.net/distributions/php-${version}.tar.bz2";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
});
|
2019-02-10 13:01:10 +01:00
|
|
|
|
|
|
|
rdedup = super.callPackages ./pkgs/rdedup {};
|
2019-10-31 10:45:37 +01:00
|
|
|
|
|
|
|
# TODO: facetimehd is currfently broken (https://github.com/NixOS/nixpkgs/pull/72804)
|
|
|
|
facetimehd-firmware = super.hello;
|
2019-11-22 16:37:46 +01:00
|
|
|
|
|
|
|
qtile = nixpkgs-master.qtile;
|
2019-11-28 01:02:39 +01:00
|
|
|
|
|
|
|
inherit (nixpkgs-master) podman conmon slirp4netns;
|
|
|
|
|
|
|
|
# posh makes use of podman to run an encapsulated shell session
|
|
|
|
posh = { image, pull ? "always", global_args ? "", run_args ? "" }:
|
|
|
|
(super.writeScriptBin "posh" ''
|
|
|
|
#! ${super.bash}/bin/bash
|
|
|
|
source /etc/profile
|
|
|
|
|
|
|
|
tty -s && tty="-t" || quiet="-q"
|
|
|
|
|
|
|
|
POSH_IMAGE=${image}
|
|
|
|
POSH_PULL=${pull}
|
|
|
|
|
|
|
|
if [ "$1" == "-c" ]; then
|
|
|
|
# we've most likely been spawned by sshd
|
|
|
|
# $2 contains the command string
|
|
|
|
shift
|
|
|
|
# TODO: make the variables overridable via the command_string
|
|
|
|
fi
|
|
|
|
|
|
|
|
exec ${self.podman}/bin/podman \
|
|
|
|
${global_args} run --rm -i $tty -v ~/:/root -w /root --pull=always --network host --pull=''${POSH_PULL} \
|
|
|
|
${run_args} ''${POSH_IMAGE} $@
|
|
|
|
'')
|
|
|
|
.overrideAttrs(attrs: attrs // {
|
|
|
|
passthru = {
|
|
|
|
shellPath = "/bin/posh";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2019-01-26 23:59:31 +01:00
|
|
|
}
|