]> gitweb.ps.run Git - flakes/blobdiff - flake.nix
fix semicolon
[flakes] / flake.nix
index 6c18c4fe8fca3fe4bafcf6d3530ca211413c567c..ae83df31dcae010370d7e98eefb2a01d2b5947ab 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -4,12 +4,19 @@
   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 {
-        packages.default = pkgs.stdenv.mkDerivation {
+        packages.resetmsmice = pkgs.stdenv.mkDerivation {
           pname = "resetmsmice";
           version = "0.0.0";
           src = pkgs.fetchFromGitHub {
           '';
         };
 
-        apps.default = {
+        apps.resetmsmice = {
           type = "app";
-          program = "${self.packages.${system}.default}/bin/resetmsmice";
+          program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice";
         };
-      });
+      })
+    )
+  };
 }