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; };
12 packages.default = pkgs.stdenv.mkDerivation {
13 pname = "resetmsmice";
15 src = pkgs.fetchFromGitHub {
16 owner = "paulrichards321";
18 rev = "2623a46bcfdaab199b1fc080060d4e3f1c94ce86";
19 hash = "sha256-xRteJe7lAoyMrz13UIXCkg5dxhziT6e9Bn7+zYzt2j8=";
22 buildInputs = with pkgs; [
23 autoconf automake pkg-config libusb1 shadow
28 ./configure --disable-gui --prefix=$out
34 cp resetmsmice $out/bin/
40 program = "${self.packages.${system}.default}/bin/resetmsmice";