2020-10-15 17:05:30 +11:00
|
|
|
# This file describes your repository contents.
|
|
|
|
# It should return a set of nix derivations
|
|
|
|
# and optionally the special attributes `lib`, `modules` and `overlays`.
|
|
|
|
# It should NOT import <nixpkgs>. Instead, you should take pkgs as an argument.
|
|
|
|
# Having pkgs default to <nixpkgs> is fine though, and it lets you use short
|
|
|
|
# commands such as:
|
|
|
|
# nix-build -A mypackage
|
|
|
|
|
2020-10-15 19:05:13 +11:00
|
|
|
{ pkgs ? import <nixpkgs> { } }:
|
2020-10-15 17:05:30 +11:00
|
|
|
|
2020-10-15 19:05:13 +11:00
|
|
|
rec {
|
2020-10-15 17:05:30 +11:00
|
|
|
# The `lib`, `modules`, and `overlay` names are special
|
|
|
|
lib = import ./lib { inherit pkgs; }; # functions
|
|
|
|
modules = import ./modules; # NixOS modules
|
|
|
|
overlays = import ./overlays; # nixpkgs overlays
|
|
|
|
|
2020-10-15 19:05:13 +11:00
|
|
|
# Alacritty with the unmerged ligature patches applied.
|
2020-10-15 22:38:34 +11:00
|
|
|
alacritty-ligatures = (pkgs.alacritty.override {
|
2020-10-25 12:28:47 +11:00
|
|
|
inherit (pkgs.rustPackages_1_45) rustPlatform;
|
2020-10-15 22:38:34 +11:00
|
|
|
}).overrideAttrs (oldAttrs: rec {
|
|
|
|
pname = "${oldAttrs.pname}-ligatures";
|
2020-10-25 12:34:32 +11:00
|
|
|
version = "0.6.0.20201022";
|
2020-10-15 22:38:34 +11:00
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "zenixls2";
|
|
|
|
repo = "alacritty";
|
|
|
|
fetchSubmodules = true;
|
2020-10-25 12:34:32 +11:00
|
|
|
rev = "525fe0ea174354db7ba28de65328a0db18fd7f70";
|
|
|
|
sha256 = "1j8mrslii7bw721bkgaqxm9ldrm5f01cil55dfjn7ziwz3xjvqvx";
|
2020-10-15 22:38:34 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (pkgs.lib.const {
|
2020-10-17 15:35:24 +11:00
|
|
|
name = "${pname}-${version}-vendor.tar.gz";
|
2020-10-15 22:38:34 +11:00
|
|
|
inherit src;
|
2020-10-25 12:34:32 +11:00
|
|
|
outputHash = "11kj2hr9wkq1zq13ml561i0i0h40d34iwqy0b8apn9ij8pdp0b37";
|
2020-10-15 22:38:34 +11:00
|
|
|
});
|
2020-10-17 13:54:44 +11:00
|
|
|
|
|
|
|
ligatureInputs = [
|
|
|
|
pkgs.fontconfig
|
|
|
|
pkgs.freetype
|
|
|
|
pkgs.libglvnd
|
|
|
|
pkgs.stdenv.cc.cc.lib
|
|
|
|
pkgs.xlibs.libxcb
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = (oldAttrs.buildInputs or []) ++ ligatureInputs;
|
|
|
|
|
|
|
|
# HACK: One of the ligature libraries required the C++ stdlib at runtime,
|
|
|
|
# and I can't work out a better way to push it to the RPATH.
|
|
|
|
postInstall = pkgs.lib.optional (!pkgs.stdenv.isDarwin) ''
|
|
|
|
patchelf \
|
|
|
|
--set-rpath ${pkgs.lib.makeLibraryPath ligatureInputs}:"$(patchelf --show-rpath $out/bin/alacritty)" \
|
|
|
|
$out/bin/alacritty
|
|
|
|
'';
|
2020-10-15 22:38:34 +11:00
|
|
|
});
|
2020-10-15 17:05:30 +11:00
|
|
|
|
2020-10-15 19:05:13 +11:00
|
|
|
amdgpu-fan = pkgs.callPackage ./pkgs/tools/misc/amdgpu-fan { };
|
|
|
|
|
2020-10-15 21:49:24 +11:00
|
|
|
goModules = pkgs.recurseIntoAttrs rec {
|
|
|
|
qt = pkgs.libsForQt512.callPackage ./pkgs/development/go-modules/qt { };
|
|
|
|
};
|
2020-10-15 19:05:13 +11:00
|
|
|
|
|
|
|
# A functional Jetbrains IDE-with-plugins package set.
|
2020-10-18 18:06:49 +11:00
|
|
|
jetbrains = pkgs.dontRecurseIntoAttrs rec {
|
2020-10-18 17:47:48 +11:00
|
|
|
jetbrainsPluginsFor = variant: import ./pkgs/top-level/jetbrains-plugins.nix {
|
|
|
|
inherit (pkgs) lib newScope stdenv fetchzip;
|
|
|
|
inherit variant;
|
2020-10-15 19:05:13 +11:00
|
|
|
};
|
|
|
|
|
2020-10-18 17:47:48 +11:00
|
|
|
pluginBuild = jetbrainsPlatforms: pkgs.callPackage ./pkgs/build-support/jetbrains/plugin.nix {
|
|
|
|
inherit jetbrains jetbrainsPlatforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
clionPlugins = pkgs.dontRecurseIntoAttrs (jetbrainsPluginsFor pkgs.jetbrains.clion);
|
|
|
|
ideaCommunityPlugins = pkgs.dontRecurseIntoAttrs (jetbrainsPluginsFor pkgs.jetbrains.idea-community);
|
|
|
|
ideaUltimatePlugins = pkgs.dontRecurseIntoAttrs (jetbrainsPluginsFor pkgs.jetbrains.idea-ultimate);
|
|
|
|
|
|
|
|
clionWithPlugins = clionPlugins.jetbrainsWithPlugins;
|
|
|
|
ideaCommunityWithPlugins = ideaCommunityPlugins.jetbrainsWithPlugins;
|
|
|
|
ideaUltimateWithPlugins = ideaUltimatePlugins.jetbrainsWithPlugins;
|
2020-10-18 18:06:49 +11:00
|
|
|
};
|
2020-10-18 17:47:48 +11:00
|
|
|
|
2020-10-15 19:05:13 +11:00
|
|
|
libhl = pkgs.callPackage ./pkgs/development/libraries/libhl { };
|
|
|
|
|
|
|
|
mopidy-subidy = pkgs.callPackage ./pkgs/applications/audio/mopidy/subidy.nix {
|
2020-10-17 12:46:53 +11:00
|
|
|
python3Packages = pkgs.python3Packages // python3Packages;
|
2020-10-15 19:05:13 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
pam_gnupg = pkgs.callPackage ./pkgs/os-specific/linux/pam_gnupg { };
|
|
|
|
|
|
|
|
picom-animations = pkgs.picom.overrideAttrs (oldAttrs: {
|
|
|
|
pname = "picom-animations";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "jonaburg";
|
|
|
|
repo = "picom";
|
|
|
|
rev = "d718c94";
|
|
|
|
sha256 = "165mc53ryyxn2ybkhikmk51ay3k18mvlsym3am3mgr8cpivmf2rm";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
polybar = pkgs.polybar.overrideAttrs (oldAttrs: {
|
|
|
|
# Enables an extra button in formatting, indirectly allowing the use of
|
|
|
|
# the mouse forward and backward buttons.
|
|
|
|
patches = (oldAttrs.patches or [ ]) ++ [ ./pkgs/applications/misc/polybar/9button.patch ];
|
|
|
|
});
|
|
|
|
|
2020-10-17 12:47:43 +11:00
|
|
|
python2Packages =
|
|
|
|
let
|
|
|
|
fixVersion =
|
|
|
|
{ package
|
|
|
|
, version
|
|
|
|
, sha256
|
|
|
|
, extra ? (oldAttrs: { })
|
|
|
|
}: package.overrideAttrs (oldAttrs: rec {
|
|
|
|
inherit version;
|
|
|
|
src = pkgs.python2Packages.fetchPypi {
|
|
|
|
inherit (oldAttrs) pname;
|
|
|
|
inherit version sha256;
|
|
|
|
};
|
|
|
|
} // extra oldAttrs);
|
|
|
|
in
|
|
|
|
pkgs.recurseIntoAttrs rec {
|
|
|
|
colorama_0_3_3 = fixVersion {
|
|
|
|
package = pkgs.python2Packages.colorama;
|
|
|
|
version = "0.3.3";
|
|
|
|
sha256 = "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb";
|
|
|
|
};
|
|
|
|
|
|
|
|
mutagen_1_30 = fixVersion {
|
|
|
|
package = pkgs.python2Packages.mutagen;
|
|
|
|
version = "1.30";
|
|
|
|
sha256 = "0kv2gjnzbj1w0bswmxm7wi05x6ypi7jk52s0lb8gw8s459j41gyd";
|
|
|
|
extra = oldAttrs: {
|
|
|
|
patches = [ ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pyspotify_2_0_5 = fixVersion {
|
|
|
|
package = pkgs.python2Packages.pyspotify;
|
|
|
|
version = "2.0.5";
|
|
|
|
sha256 = "0y16c024rrvbvfdqj1n0k4b25b1nbza3i7kspg5b0ci2src1rm7v";
|
|
|
|
};
|
|
|
|
|
|
|
|
overlay = {
|
|
|
|
colorama = colorama_0_3_3;
|
|
|
|
mutagen = mutagen_1_30;
|
|
|
|
pyspotify = pyspotify_2_0_5;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-10-15 19:05:13 +11:00
|
|
|
python3Packages = pkgs.recurseIntoAttrs {
|
|
|
|
py-sonic = pkgs.python3.pkgs.callPackage ./pkgs/development/python-modules/py-sonic { };
|
|
|
|
};
|
|
|
|
|
|
|
|
# The one in Nixpkgs still extracts the pre-built Debian package instead
|
|
|
|
# of building from source.
|
|
|
|
protonmailBridgePackages = pkgs.libsForQt512.callPackage ./pkgs/applications/networking/protonmail-bridge {
|
2020-10-15 21:49:24 +11:00
|
|
|
inherit goModules;
|
2020-10-15 19:05:13 +11:00
|
|
|
};
|
2020-10-15 21:49:24 +11:00
|
|
|
protonmail-bridge = protonmailBridgePackages.protonmail-bridge;
|
|
|
|
protonmail-bridge-headless = protonmailBridgePackages.protonmail-bridge-headless;
|
2020-10-15 19:05:13 +11:00
|
|
|
|
|
|
|
radeon-profile-daemon = pkgs.libsForQt5.callPackage ./pkgs/tools/misc/radeon-profile-daemon { };
|
|
|
|
|
|
|
|
samrewritten = pkgs.callPackage ./pkgs/tools/misc/samrewritten { };
|
|
|
|
|
|
|
|
spotify-ripper = pkgs.callPackage ./pkgs/tools/misc/spotify-ripper {
|
2020-10-17 12:47:43 +11:00
|
|
|
# NOTE: Not available in 20.03. Specifying it this way lets me cheat the
|
|
|
|
# build auto-failing on 20.03 because of the attribute not existing.
|
2020-10-15 19:05:13 +11:00
|
|
|
inherit (pkgs) fdk-aac-encoder;
|
2020-10-17 12:47:43 +11:00
|
|
|
python2Packages = pkgs.python2Packages // python2Packages.overlay;
|
2020-10-15 19:05:13 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
zsh-z = pkgs.callPackage ./pkgs/shells/zsh/zsh-z { };
|
2020-10-15 17:05:30 +11:00
|
|
|
}
|