init: gig, because gitignores are boring

This commit is contained in:
Teesh 2026-02-11 22:16:04 +02:00
commit ee7171a766
12 changed files with 1449 additions and 0 deletions

18
packages/nix/package.nix Normal file
View file

@ -0,0 +1,18 @@
{...}: {
perSystem = {pkgs, ...}: {
packages.gig = pkgs.rustPlatform.buildRustPackage {
pname = "gig";
version = "v0.0.1";
src = ../..;
cargoLock.lockFile = ../../Cargo.lock;
buildInputs = with pkgs; [
openssl
libgit2
];
nativeBuildInputs = with pkgs; [pkg-config];
};
};
}

12
packages/nix/shell.nix Normal file
View file

@ -0,0 +1,12 @@
{...}: {
perSystem = {pkgs, ...}: {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
cargo
pkg-config
openssl
libgit2
];
};
};
}

5
packages/nix/systems.nix Normal file
View file

@ -0,0 +1,5 @@
{...}: {
systems = [
"x86_64-linux"
];
}