treesummaryrefslogcommitdiff
path: root/resetmsmice
diff options
context:
space:
mode:
authorpatrick-scho2025-05-02 13:33:31 +0200
committerpatrick-scho2025-05-02 13:33:31 +0200
commit7e9b5b3235e913d8b1dc06cb285c3c86d0e2adc4 (patch)
treeaf793e16e8f3281b04dd30c31da7dfbb918371b4 /resetmsmice
parenta193ef0ae67cd6ce3f7bc7cde30f7fb939d7e6d6 (diff)
downloadflakes-7e9b5b3235e913d8b1dc06cb285c3c86d0e2adc4.tar.gz
flakes-7e9b5b3235e913d8b1dc06cb285c3c86d0e2adc4.zip
okay new structure
Diffstat (limited to 'resetmsmice')
-rw-r--r--resetmsmice/flake.lock61
-rw-r--r--resetmsmice/flake.nix44
2 files changed, 105 insertions, 0 deletions
diff --git a/resetmsmice/flake.lock b/resetmsmice/flake.lock
new file mode 100644
index 0000000..7f66a7c
--- /dev/null
+++ b/resetmsmice/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1746141548,
+ "narHash": "sha256-IgBWhX7A2oJmZFIrpRuMnw5RAufVnfvOgHWgIdds+hc=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "f02fddb8acef29a8b32f10a335d44828d7825b78",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/resetmsmice/flake.nix b/resetmsmice/flake.nix
new file mode 100644
index 0000000..6c18c4f
--- /dev/null
+++ b/resetmsmice/flake.nix
@@ -0,0 +1,44 @@
+{
+ description = "resetmsmice";
+
+ 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:
+ let
+ pkgs = import nixpkgs { inherit system; };
+ in {
+ packages.default = pkgs.stdenv.mkDerivation {
+ pname = "resetmsmice";
+ version = "0.0.0";
+ src = pkgs.fetchFromGitHub {
+ owner = "paulrichards321";
+ repo = "resetmsmice";
+ rev = "2623a46bcfdaab199b1fc080060d4e3f1c94ce86";
+ hash = "sha256-xRteJe7lAoyMrz13UIXCkg5dxhziT6e9Bn7+zYzt2j8=";
+ };
+
+ buildInputs = with pkgs; [
+ autoconf automake pkg-config libusb1 shadow
+ ];
+
+ buildPhase = ''
+ autoreconf -i .
+ ./configure --disable-gui --prefix=$out
+ make
+ '';
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp resetmsmice $out/bin/
+ '';
+ };
+
+ apps.default = {
+ type = "app";
+ program = "${self.packages.${system}.default}/bin/resetmsmice";
+ };
+ });
+}
+