my over complex system configurations dotfiles.isabelroses.com/
nixos nix flake dotfiles linux
12
fork

Configure Feed

Select the types of activity you want to include in your feed.

flake/packages: cleanup outputs

+30 -19
+22 -16
modules/flake/packages/default.nix
··· 1 1 # I would highly advise you do not use my flake as an input and instead you vendor this 2 2 # if you want to use this code, you may want to add my cachix cache to your flake 3 3 # you may want to not have to build this for yourself however 4 - { inputs, ... }: 4 + { lib, inputs, ... }: 5 5 { 6 6 # get a list of packages for the host system, and if none exist use an empty set 7 7 flake.overlays.default = _: prev: inputs.self.packages.${prev.stdenv.hostPlatform.system} or { }; ··· 14 14 ... 15 15 }: 16 16 let 17 - inherit (pkgs) callPackage; 18 - in 19 - { 20 - packages = { 17 + packages = lib.makeScope pkgs.newScope (self: { 18 + inherit inputs; 19 + 21 20 # keep-sorted start block=yes newline_separated=yes 22 - iztaller = callPackage ./iztaller/package.nix { inherit (inputs'.izlix.packages) nix; }; 21 + iztaller = self.callPackage ./iztaller/package.nix { inherit (inputs'.izlix.packages) nix; }; 23 22 24 - libdoc = callPackage ./docs/lib.nix { inherit (inputs) self; }; 25 - optionsdoc = callPackage ./docs/options.nix { 26 - inherit inputs; 27 - inherit (inputs) self; 28 - }; 29 - docs = callPackage ./docs/package.nix { 30 - inherit (inputs) self; 31 - inherit (self'.packages) libdoc optionsdoc; 32 - }; 23 + libdoc = self.callPackage ./docs/lib.nix { }; 24 + optionsdoc = self.callPackage ./docs/options.nix { }; 25 + docs = self.callPackage ./docs/package.nix { }; 33 26 # keep-sorted end 34 - }; 27 + }); 28 + in 29 + { 30 + legacyPackages = packages; 31 + 32 + packages = lib.filterAttrs ( 33 + _: pkg: 34 + let 35 + isDerivation = lib.isDerivation pkg; 36 + availableOnHost = lib.meta.availableOn pkgs.stdenv.hostPlatform pkg; 37 + isBroken = pkg.meta.broken or false; 38 + in 39 + isDerivation && !isBroken && availableOnHost 40 + ) packages; 35 41 }; 36 42 }
+3 -1
modules/flake/packages/docs/lib.nix
··· 2 2 stdenvNoCC, 3 3 lib, 4 4 nixdoc, 5 - self, 5 + 6 + inputs, 7 + self ? inputs.self, 6 8 7 9 libset ? [ 8 10 {
+2 -1
modules/flake/packages/docs/options.nix
··· 1 1 { 2 2 lib, 3 3 pkgs, 4 - self, 4 + 5 5 inputs, 6 + self ? inputs.self, 6 7 7 8 nixosOptionsDoc, 8 9 runCommandNoCC,
+3 -1
modules/flake/packages/docs/package.nix
··· 8 8 9 9 libdoc, 10 10 optionsdoc, 11 - self, 11 + 12 + inputs, 13 + self ? inputs.self, 12 14 }: 13 15 stdenvNoCC.mkDerivation (finalAttrs: { 14 16 name = "docs";