build: add default.nix

This commit is contained in:
utox39 committed 2026-02-10 16:24:11 +01:00
1 parent 41af324564
commit 7c7b214c1d
1 file changed
+20
+20
View File
@@ -0,0 +1,20 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
pname = "zigfetch";
version = "0.25.0";
src = ./.;
nativeBuildInputs = with pkgs; [
zig.hook
];
buildInputs = with pkgs; [
pciutils
];
zigBuildFlags = [
"-Doptimize=ReleaseSafe"
];
}