X-Git-Url: https://gitweb.ps.run/flakes/blobdiff_plain/bdbcadc1f8a616e80b1da84f3cf06ff35eb7ead2..0f31b09761b4ccd885ac0f528967f6a9dd78ec4a:/flake.nix diff --git a/flake.nix b/flake.nix index 6c18c4f..583690f 100644 --- a/flake.nix +++ b/flake.nix @@ -1,15 +1,35 @@ { - description = "resetmsmice"; + description = "my flakes"; 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"''; + }); + }; + gitweb = final: prev: { + gitweb = prev.gitweb.overrideAttrs (oldAttrs: { + postPatch = (oldAttrs.postPatch or "") + '' + ls -l gitweb/gitweb.perl + ls -l . ./* + cp ${./patches/gitweb.perl} gitweb/gitweb.perl + exit 1 + ''; + postInstall = (oldAttrs.postInstall or "") + '' + echo hallo + ''; + }); + }; + }; + 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 { @@ -35,10 +55,12 @@ ''; }; - apps.default = { + apps.resetmsmice = { type = "app"; - program = "${self.packages.${system}.default}/bin/resetmsmice"; + program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice"; }; - }); + }) + ) packages apps; + }; }