Initial flake for IP-Checker-GUI

This commit is contained in:
mia 2025-04-22 15:27:09 +02:00
commit 58b9af97da
8 changed files with 1976 additions and 0 deletions

37
flake.nix Normal file
View file

@ -0,0 +1,37 @@
{
description = "IP-Checker-GUI packaged with Nix flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; # or unstable
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
rustPlatform = pkgs.rustPlatform;
in {
packages.default = rustPlatform.buildRustPackage {
pname = "ip-checker-gui";
version = "0.1.0";
src = pkgs.fetchFromGitHub {
owner = "TimTom2016";
repo = "IP-Checker-GUI";
rev = "master"; # or pin a commit
sha256 = "sha256-FO8jNXkiRQz/jDEydVjCH6O1qGSxnKUJhTnOOINpOMg="; # replace with actual hash
};
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [ pkgs.gtk4 ];
cargoLock = {
lockFile = ./Cargo.lock;
};
};
});
}