cleanup nix-flake and zig-cache

This commit is contained in:
Emil Lerch 2024-10-14 21:36:12 -07:00
parent af6be8c650
commit 5cd5f24da7
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
2 changed files with 1 additions and 45 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ libxfixes-libXfixes-5.0.3
xorgproto-xorgproto-2021.5 xorgproto-xorgproto-2021.5
.clippy .clippy
libs/ libs/
.zig-cache

View File

@ -1,45 +0,0 @@
{
description = "A flake to compile Zig code from GitHub";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
# Replace with the actual GitHub repository URL and revision
src = pkgs.fetchgit {
url= "https://git.lerch.org/lobo/clipboard.git";
rev= "master";
sha256 = "";
};
in {
packages.default = pkgs.stdenv.mkDerivation {
pname = "zig-project";
version = "0.1.0";
inherit src;
nativeBuildInputs = [ pkgs.zig ];
buildPhase = ''
zig build
'';
installPhase = ''
mkdir -p $out/bin
cp zig-out/bin/* $out/bin/
'';
};
devShells.default = pkgs.mkShell {
buildInputs = [ pkgs.zig ];
};
}
);
}