aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2025-04-11 14:56:58 -0400
committerAnthony Wang2025-04-11 14:56:58 -0400
commitdabeee30fadc0157f9876ccdb41a0c18d20db3d1 (patch)
tree148c73c09a6b30de8bb1f83d47f841e601247215
parent9e3c433800f80de850f9f604c4780dfe038e8aa4 (diff)
Remove broken flakeHEADmaster
-rw-r--r--README.md2
-rw-r--r--flake.lock62
-rw-r--r--flake.nix45
3 files changed, 1 insertions, 108 deletions
diff --git a/README.md b/README.md
index d3f517b..1322ad1 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
# cgit-build
-It's a Bash script that builds the Arch Linux package for this website. Run with `podman run -v .:/host --rm archlinux:base-devel /host/build.sh`. There's also a Nix flake but it doesn't work.
+It's a Bash script that builds the Arch Linux package for this website. Run with `podman run -v .:/host --rm archlinux:base-devel /host/build.sh`.
diff --git a/flake.lock b/flake.lock
deleted file mode 100644
index 959ce3c..0000000
--- a/flake.lock
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "nodes": {
- "archix": {
- "inputs": {
- "nixpkgs": "nixpkgs"
- },
- "locked": {
- "lastModified": 1741533641,
- "narHash": "sha256-4K20shnIp94oCg/KZB0boqegSO646EGYNAi1WCn47dU=",
- "owner": "SamLukeYes",
- "repo": "archix",
- "rev": "7ca8380ee0cf3a8d12dfa14834a4bc09fe008c65",
- "type": "github"
- },
- "original": {
- "owner": "SamLukeYes",
- "repo": "archix",
- "type": "github"
- }
- },
- "nixpkgs": {
- "locked": {
- "lastModified": 1741379970,
- "narHash": "sha256-Wh7esNh7G24qYleLvgOSY/7HlDUzWaL/n4qzlBePpiw=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "36fd87baa9083f34f7f5027900b62ee6d09b1f2f",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "ref": "nixos-unstable",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
- "nixpkgs_2": {
- "locked": {
- "lastModified": 1743827369,
- "narHash": "sha256-rpqepOZ8Eo1zg+KJeWoq1HAOgoMCDloqv5r2EAa9TSA=",
- "owner": "nixos",
- "repo": "nixpkgs",
- "rev": "42a1c966be226125b48c384171c44c651c236c22",
- "type": "github"
- },
- "original": {
- "owner": "nixos",
- "ref": "nixos-unstable",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
- "root": {
- "inputs": {
- "archix": "archix",
- "nixpkgs": "nixpkgs_2"
- }
- }
- },
- "root": "root",
- "version": 7
-}
diff --git a/flake.nix b/flake.nix
deleted file mode 100644
index 7ae3cbe..0000000
--- a/flake.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- description = "Build patched cgit for Arch Linux";
-
- inputs = {
- nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
- };
-
- outputs = { self, nixpkgs }:
- let
- system = "x86_64-linux";
- pkgs = nixpkgs.legacyPackages.${system};
- in {
-
- packages.${system} = {
- cgit = pkgs.stdenv.mkDerivation {
- pname = "cgit-arch";
- version = "1.0";
- src = pkgs.fetchgit {
- url = "https://gitlab.archlinux.org/archlinux/packaging/packages/cgit.git";
- rev = "0dee9bf781e2bfba3de48bdab8d9cdb7cebde076";
- hash = "sha256-NqfFNoAdgoAjUDhLVGz4KcIQXb5mJtEM01474sERGuI=";
- };
- patchFile = ./patch;
- nativeBuildInputs = with pkgs; [
-# zstd
- pacman
- fakeroot
-# libarchive
-# git
-# gnupatch
- ];
- buildPhase = ''
- patch -p1 < $patchFile
- makepkg -s --config ${pkgs.pacman}/etc/makepkg.conf
- '';
- installPhase = ''
- mkdir -p $out
- cp *.pkg.tar.zst $out/
- '';
- };
-
- default = self.packages.${system}.cgit;
- };
- };
-}