diff options
| author | patrick-scho | 2025-05-02 21:05:49 +0200 |
|---|---|---|
| committer | patrick-scho | 2025-05-02 21:05:49 +0200 |
| commit | bdbcadc1f8a616e80b1da84f3cf06ff35eb7ead2 (patch) | |
| tree | 7dd3234c3224931a5b2583a56be69ac1a336f9d6 /flake.nix | |
| parent | 368342eb2907c45f968e07b62fe60d1982e1a21d (diff) | |
| download | flakes-bdbcadc1f8a616e80b1da84f3cf06ff35eb7ead2.tar.gz flakes-bdbcadc1f8a616e80b1da84f3cf06ff35eb7ead2.zip | |
change structure once more (now include all flakes in one file)
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..6c18c4f --- /dev/null +++ b/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"; + }; + }); +} + |
