~zethra/sasha-fetch

3d8799f7df2b55999f10b15e8afb44327415f332 — Sashanoraa 1 year, 4 months ago 05536d7 main
Fix flake module
2 files changed, 35 insertions(+), 32 deletions(-)

M flake.nix
M module.nix
M flake.nix => flake.nix +33 -30
@@ 5,42 5,45 @@
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
				lib = pkgs.lib;
      in
      rec {
        packages = rec {
          sasha-fetch = pkgs.stdenv.mkDerivation rec {
            pname = "sasha-fetch";
            version = "1.0.1";
    flake-utils.lib.eachDefaultSystem
      (system:
        let
          pkgs = nixpkgs.legacyPackages.${system};
          lib = pkgs.lib;
        in
        rec {
          packages = rec {
            sasha-fetch = pkgs.stdenv.mkDerivation rec {
              pname = "sasha-fetch";
              version = "1.0.1";

						src = ./.;
              src = ./.;

            nativeBuildInputs = with pkgs; [ makeWrapper ];
              nativeBuildInputs = with pkgs; [ makeWrapper ];

            installPhase = ''
							mkdir -p $out/bin
							mv sasha-fetch.py $out/bin/sasha-fetch
              installPhase = ''
                							mkdir -p $out/bin
                							mv sasha-fetch.py $out/bin/sasha-fetch

							wrapProgram $out/bin/sasha-fetch \
								--prefix PATH : ${lib.makeBinPath [ pkgs.python3 pkgs.catimg ]}
            '';
                							wrapProgram $out/bin/sasha-fetch \
                								--prefix PATH : ${lib.makeBinPath [ pkgs.python3 pkgs.catimg ]}
              '';

            meta = with lib; {
              homepage = "https://sr.ht/~zethra/sasha-fetch";
              description = "A fun neofetch clone with your info";
              license = licenses.mit;
              maintainers = [ "sashanoraa" ];
              meta = with lib; {
                homepage = "https://sr.ht/~zethra/sasha-fetch";
                description = "A fun neofetch clone with your info";
                license = licenses.mit;
                maintainers = [ "sashanoraa" ];
              };
            };
            default = sasha-fetch;
          };
          default = sasha-fetch;
        };

        nixosModules = rec {
          sasha-fetch = import ./module.nix packages.sasha-fetch;
          default = sasha-fetch;
        };
      });
        })
    // {
      nixosModules = rec {
        sasha-fetch = import ./module.nix self;
        default = sasha-fetch;
      };
    };
}

M module.nix => module.nix +2 -2
@@ 1,4 1,4 @@
pkg: { config, lib, pkgs, ... }:
self: { config, lib, pkgs, ... }:

let
  cfg = config.services.sasha-fetch;


@@ 10,7 10,7 @@ in

    package = lib.mkOption {
      type = lib.types.package;
      default = pkg;
      default = self.packages."${pkgs.system}".sasha-fetch;
      description = lib.mdDoc ''
        Overridable attribute of the gotosocial package to use.
      '';