]> gitweb.ps.run Git - flakes/blobdiff - flake.nix
remove gitweb overlay
[flakes] / flake.nix
index 40898d32a875b46062e08b8aa4be8ff1fd248219..825ae50e0b56aa8588e8c3cf8e8daf9acdea1589 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -1,22 +1,21 @@
 {
 {
-  description = "resetmsmice";
+  description = "my flakes";
 
   inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
   inputs.flake-utils.url = "github:numtide/flake-utils";
 
 
   inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
   inputs.flake-utils.url = "github:numtide/flake-utils";
 
-  outputs = { self, nixpkgs, flake-utils }:
-    flake-utils.lib.eachDefaultSystem (system:
+  outputs = { self, nixpkgs, flake-utils }: {
+    overlays = {
+      cgit = final: prev: {
+        cgit = prev.cgit.overrideAttrs (oldAttrs: {
+          postPatch = ''substituteInPlace ui-repolist.c --replace "master" "main"'';
+        });
+      };
+    };
+    inherit (flake-utils.lib.eachDefaultSystem (system:
       let
         pkgs = import nixpkgs { inherit system; };
       in {
       let
         pkgs = import nixpkgs { inherit system; };
       in {
-        overlays = {
-          cgit = final: prev: {
-            cgit = prev.cgit.overrideAttrs (oldAttrs: {
-              postPatch = ''substituteInPlace ui-repolist.c --replace "master" "main"'';
-            });
-          };
-        };
-
         packages.resetmsmice = pkgs.stdenv.mkDerivation {
           pname = "resetmsmice";
           version = "0.0.0";
         packages.resetmsmice = pkgs.stdenv.mkDerivation {
           pname = "resetmsmice";
           version = "0.0.0";
@@ -47,6 +46,8 @@
           type = "app";
           program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice";
         };
           type = "app";
           program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice";
         };
-      });
+      })
+    ) packages apps;
+  };
 }
 
 }