2 description = "my flakes";
4 inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5 inputs.flake-utils.url = "github:numtide/flake-utils";
7 outputs = { self, nixpkgs, flake-utils }: {
10 cgit = prev.cgit.overrideAttrs (oldAttrs: {
11 postPatch = ''substituteInPlace ui-repolist.c --replace "master" "main"'';
14 gitweb = final: prev: {
15 gitweb = prev.gitweb.overrideAttrs (oldAttrs: {
16 postPatch = (oldAttrs.postPatch or "") + ''
17 ls -l gitweb/gitweb.perl
19 cp ${./patches/gitweb.perl} gitweb/gitweb.perl
22 postInstall = (oldAttrs.postInstall or "") + ''
28 inherit (flake-utils.lib.eachDefaultSystem (system:
30 pkgs = import nixpkgs { inherit system; };
32 packages.resetmsmice = pkgs.stdenv.mkDerivation {
33 pname = "resetmsmice";
35 src = pkgs.fetchFromGitHub {
36 owner = "paulrichards321";
38 rev = "2623a46bcfdaab199b1fc080060d4e3f1c94ce86";
39 hash = "sha256-xRteJe7lAoyMrz13UIXCkg5dxhziT6e9Bn7+zYzt2j8=";
42 buildInputs = with pkgs; [
43 autoconf automake pkg-config libusb1 shadow
48 ./configure --disable-gui --prefix=$out
54 cp resetmsmice $out/bin/
60 program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice";