Skip to content

Commit

Permalink
chore(nix): start overriding derivations from nixpkgs
Browse files Browse the repository at this point in the history
Signed-off-by: seth <getchoo@tuta.io>
  • Loading branch information
getchoo committed May 28, 2023
1 parent acf1946 commit 913733d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 109 deletions.
17 changes: 8 additions & 9 deletions nix/distribution.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
inputs,
self,
version,
...
Expand All @@ -13,15 +12,15 @@

flake = {
overlays.default = _: prev: let
# Helper function to build prism against different versions of Qt.
mkPrism = qt:
qt.callPackage ./package.nix {
inherit (inputs) libnbtplusplus;
inherit self version;
};
# Helper function to create overrides from multiple versions of prism.
mkPrism = prism:
prism.overrideAttrs (_: {
src = prev.lib.cleanSource self;
inherit version;
});
in {
prismlauncher = mkPrism prev.qt6Packages;
prismlauncher-qt5 = mkPrism prev.libsForQt5;
prismlauncher = mkPrism prev.prismlauncher;
prismlauncher-qt5 = mkPrism prev.prismlauncher-qt5;
};
};
}
100 changes: 0 additions & 100 deletions nix/package.nix

This file was deleted.

0 comments on commit 913733d

Please sign in to comment.