2 description = "resetmsmice";
4 inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5 inputs.flake-utils.url = "github:numtide/flake-utils";
7 outputs = { self, nixpkgs, flake-utils }:
8 flake-utils.lib.eachDefaultSystem (system:
10 pkgs = import nixpkgs { inherit system; };
14 cgit = prev.cgit.overrideAttrs (oldAttrs: {
15 postPatch = ''substituteInPlace ui-repolist.c --replace "master" "main"'';
20 packages.resetmsmice = pkgs.stdenv.mkDerivation {
21 pname = "resetmsmice";
23 src = pkgs.fetchFromGitHub {
24 owner = "paulrichards321";
26 rev = "2623a46bcfdaab199b1fc080060d4e3f1c94ce86";
27 hash = "sha256-xRteJe7lAoyMrz13UIXCkg5dxhziT6e9Bn7+zYzt2j8=";
30 buildInputs = with pkgs; [
31 autoconf automake pkg-config libusb1 shadow
36 ./configure --disable-gui --prefix=$out
42 cp resetmsmice $out/bin/
48 program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice";