init: gig, because gitignores are boring
This commit is contained in:
commit
ee7171a766
12 changed files with 1449 additions and 0 deletions
18
packages/nix/package.nix
Normal file
18
packages/nix/package.nix
Normal 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
12
packages/nix/shell.nix
Normal 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
5
packages/nix/systems.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue