From 5cd5f24da7df05c61856439f94a1c95edae11631 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 14 Oct 2024 21:36:12 -0700 Subject: [PATCH] cleanup nix-flake and zig-cache --- .gitignore | 1 + nix-flake/flake.nix | 45 --------------------------------------------- 2 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 nix-flake/flake.nix diff --git a/.gitignore b/.gitignore index 8f53324..d0152e4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ libxfixes-libXfixes-5.0.3 xorgproto-xorgproto-2021.5 .clippy libs/ +.zig-cache diff --git a/nix-flake/flake.nix b/nix-flake/flake.nix deleted file mode 100644 index 3f5e4ce..0000000 --- a/nix-flake/flake.nix +++ /dev/null @@ -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 ]; - }; - } - ); -}