aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-11-05 21:13:03 +0900
committernsfisis <nsfisis@gmail.com>2025-11-05 21:13:18 +0900
commit03fdc4b764400753874877588d075adbc7e777a0 (patch)
treed2236c69d85632790c021ad93dcdb9e32ec3adb8
parentd229e8686e90ece58f3759ff5aa14a4826ad955c (diff)
downloadnur-packages-03fdc4b764400753874877588d075adbc7e777a0.tar.gz
nur-packages-03fdc4b764400753874877588d075adbc7e777a0.tar.zst
nur-packages-03fdc4b764400753874877588d075adbc7e777a0.zip
refactor: Remove unused files
-rw-r--r--.gitignore1
-rw-r--r--README.md10
-rw-r--r--ci.nix68
-rw-r--r--default.nix14
-rw-r--r--lib/default.nix8
-rw-r--r--modules/default.nix5
-rw-r--r--overlay.nix19
-rw-r--r--overlays/default.nix5
-rw-r--r--pkgs/example-package/default.nix9
9 files changed, 1 insertions, 138 deletions
diff --git a/.gitignore b/.gitignore
index 7dc3520..750baeb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,2 @@
result
result-*
-
diff --git a/README.md b/README.md
index 00520ad..b02e7a0 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,3 @@
# nur-packages
-**My personal [NUR](https://github.com/nix-community/NUR) repository**
-
-![Build and populate cache](https://github.com/nsfisis/nur-packages/workflows/Build%20and%20populate%20cache/badge.svg)
-
-```sh
-$ pkgs/claude-code/update.sh
-```
-
-https://github.com/NixOS/nixpkgs/tree/nixpkgs-unstable/pkgs/by-name/cl/claude-code
+My personal [NUR](https://github.com/nix-community/NUR) repository
diff --git a/ci.nix b/ci.nix
deleted file mode 100644
index 4fa1017..0000000
--- a/ci.nix
+++ /dev/null
@@ -1,68 +0,0 @@
-# This file provides all the buildable and cacheable packages and
-# package outputs in your package set. These are what gets built by CI,
-# so if you correctly mark packages as
-#
-# - broken (using `meta.broken`),
-# - unfree (using `meta.license.free`), and
-# - locally built (using `preferLocalBuild`)
-#
-# then your CI will be able to build and cache only those packages for
-# which this is possible.
-
-{
- pkgs ? import <nixpkgs> { },
-}:
-
-with builtins;
-let
- isReserved = n: n == "lib" || n == "overlays" || n == "modules";
- isDerivation = p: isAttrs p && p ? type && p.type == "derivation";
- isBuildable =
- p:
- let
- licenseFromMeta = p.meta.license or [ ];
- licenseList = if builtins.isList licenseFromMeta then licenseFromMeta else [ licenseFromMeta ];
- in
- !(p.meta.broken or false) && builtins.all (license: license.free or true) licenseList;
- isCacheable = p: !(p.preferLocalBuild or false);
- shouldRecurseForDerivations = p: isAttrs p && p.recurseForDerivations or false;
-
- nameValuePair = n: v: {
- name = n;
- value = v;
- };
-
- concatMap = builtins.concatMap or (f: xs: concatLists (map f xs));
-
- flattenPkgs =
- s:
- let
- f =
- p:
- if shouldRecurseForDerivations p then
- flattenPkgs p
- else if isDerivation p then
- [ p ]
- else
- [ ];
- in
- concatMap f (attrValues s);
-
- outputsOf = p: map (o: p.${o}) p.outputs;
-
- nurAttrs = import ./default.nix { inherit pkgs; };
-
- nurPkgs = flattenPkgs (
- listToAttrs (
- map (n: nameValuePair n nurAttrs.${n}) (filter (n: !isReserved n) (attrNames nurAttrs))
- )
- );
-
-in
-rec {
- buildPkgs = filter isBuildable nurPkgs;
- cachePkgs = filter isCacheable buildPkgs;
-
- buildOutputs = concatMap outputsOf buildPkgs;
- cacheOutputs = concatMap outputsOf cachePkgs;
-}
diff --git a/default.nix b/default.nix
index 1b2b6d1..8a1be04 100644
--- a/default.nix
+++ b/default.nix
@@ -1,21 +1,7 @@
-# This file describes your repository contents.
-# It should return a set of nix derivations
-# and optionally the special attributes `lib`, `modules` and `overlays`.
-# It should NOT import <nixpkgs>. Instead, you should take pkgs as an argument.
-# Having pkgs default to <nixpkgs> is fine though, and it lets you use short
-# commands such as:
-# nix-build -A mypackage
-
{
pkgs ? import <nixpkgs> { },
}:
-
{
- # The `lib`, `modules`, and `overlays` names are special
- lib = import ./lib { inherit pkgs; }; # functions
- modules = import ./modules; # NixOS modules
- overlays = import ./overlays; # nixpkgs overlays
-
claude-code = pkgs.callPackage ./pkgs/claude-code { };
hgrep = pkgs.callPackage ./pkgs/hgrep { };
source-han-code-jp = pkgs.callPackage ./pkgs/source-han-code-jp { };
diff --git a/lib/default.nix b/lib/default.nix
deleted file mode 100644
index 1d25545..0000000
--- a/lib/default.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{ pkgs }:
-
-with pkgs.lib;
-{
- # Add your library functions here
- #
- # hexint = x: hexvals.${toLower x};
-}
diff --git a/modules/default.nix b/modules/default.nix
deleted file mode 100644
index ff6c7c0..0000000
--- a/modules/default.nix
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- # Add your NixOS modules here
- #
- # my-module = ./my-module;
-}
diff --git a/overlay.nix b/overlay.nix
deleted file mode 100644
index 4272d50..0000000
--- a/overlay.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-# You can use this file as a nixpkgs overlay. This is useful in the
-# case where you don't want to add the whole NUR namespace to your
-# configuration.
-
-self: super:
-let
- isReserved = n: n == "lib" || n == "overlays" || n == "modules";
- nameValuePair = n: v: {
- name = n;
- value = v;
- };
- nurAttrs = import ./default.nix { pkgs = super; };
-
-in
-builtins.listToAttrs (
- map (n: nameValuePair n nurAttrs.${n}) (
- builtins.filter (n: !isReserved n) (builtins.attrNames nurAttrs)
- )
-)
diff --git a/overlays/default.nix b/overlays/default.nix
deleted file mode 100644
index 0c2d870..0000000
--- a/overlays/default.nix
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- # Add your overlays here
- #
- # my-overlay = import ./my-overlay;
-}
diff --git a/pkgs/example-package/default.nix b/pkgs/example-package/default.nix
deleted file mode 100644
index 41e22df..0000000
--- a/pkgs/example-package/default.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{ stdenv }:
-
-stdenv.mkDerivation rec {
- name = "example-package-${version}";
- version = "1.0";
- src = ./.;
- buildPhase = "echo echo Hello World > example";
- installPhase = "install -Dm755 example $out";
-}