packages: switch to dream2nix lib2

This commit is contained in:
Max Headroom 2022-03-13 00:23:41 +01:00
parent 6bc697a877
commit d6ed143a42
2 changed files with 11 additions and 17412 deletions

View file

@ -1,29 +1,25 @@
{ pkgs, inputs, ... }: { pkgs, inputs, ... }:
let let
inherit (pkgs) system; inherit (pkgs) system;
dream2nix = inputs.dream2nix.lib.init { dream2nix = inputs.dream2nix.lib2.init {
systems = [ system ]; systems = [ system ];
config.overridesDirs = [ ./dream2nix-overrides ]; config = {
projectRoot = ./.;
overridesDirs = [ ./dream2nix-overrides ];
};
}; };
poetry2nix = pkgs.poetry2nix.overrideScope' (final: prev: { poetry2nix = pkgs.poetry2nix.overrideScope' (final: prev: {
defaultPoetryOverrides = prev.defaultPoetryOverrides.extend (import ./poetry2nix-overrides); defaultPoetryOverrides = prev.defaultPoetryOverrides.extend (import ./poetry2nix-overrides);
}); });
in in
{ {
ghost = (dream2nix.riseAndShine { ghost = (let version = "4.32.3"; in dream2nix.makeFlakeOutputs {
source = ./servers/ghost/dream-lock.json; source = pkgs.fetchzip {
sourceOverrides = oldSources: let url = "https://github.com/TryGhost/Ghost/releases/download/v${version}/Ghost-${version}.zip";
version = "4.32.3"; sha256 = "sha256-XneO6es3eeJz4v1JnWtUfm27zwUW2Wy3hTIHUF7UrFc=";
in { stripRoot = false;
# building ghost ourselves is a pain in the ass, so just use the zip
"ghost"."${version}" = pkgs.fetchzip {
url = "https://github.com/TryGhost/Ghost/releases/download/v${version}/Ghost-${version}.zip";
sha256 = "sha256-XneO6es3eeJz4v1JnWtUfm27zwUW2Wy3hTIHUF7UrFc=";
stripRoot = false;
};
}; };
}).defaultPackage.${system}; }).packages.${system}.ghost;
hyprspace = pkgs.callPackage ./networking/hyprspace { iproute2mac = null; }; hyprspace = pkgs.callPackage ./networking/hyprspace { iproute2mac = null; };

File diff suppressed because it is too large Load diff