├── .github ├── dependabot.yml └── workflows │ └── update.yml ├── flake.lock └── flake.nix /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "github-actions" 4 | directory: "/" 5 | schedule: 6 | interval: "weekly" 7 | -------------------------------------------------------------------------------- /.github/workflows/update.yml: -------------------------------------------------------------------------------- 1 | name: "update inputs" 2 | on: 3 | workflow_dispatch: 4 | schedule: 5 | - cron: '0 12 * * *' # daily at 12:00 6 | jobs: 7 | tests: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/checkout@v6 11 | - uses: cachix/install-nix-action@v31 12 | 13 | - name: Update inputs 14 | run: | 15 | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" 16 | git config --local user.name "github-actions[bot]" 17 | nix flake update --commit-lock-file 18 | 19 | - name: Check for nixpkgs references 20 | run: | 21 | grep '"nixpkgs"' flake.lock --invert-match --quiet 22 | 23 | - name: Push changes 24 | uses: ad-m/github-push-action@master 25 | with: 26 | github_token: ${{ secrets.GITHUB_TOKEN }} 27 | -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- 1 | { 2 | "nodes": { 3 | "flake-utils": { 4 | "inputs": { 5 | "systems": "systems" 6 | }, 7 | "locked": { 8 | "lastModified": 1731533236, 9 | "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 10 | "owner": "numtide", 11 | "repo": "flake-utils", 12 | "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 13 | "type": "github" 14 | }, 15 | "original": { 16 | "owner": "numtide", 17 | "repo": "flake-utils", 18 | "type": "github" 19 | } 20 | }, 21 | "nixpkgs-lib": { 22 | "locked": { 23 | "lastModified": 1765070080, 24 | "narHash": "sha256-5D1Mcm2dQ1aPzQ0sbXluHVUHququ8A7PKJd7M3eI9+E=", 25 | "owner": "nix-community", 26 | "repo": "nixpkgs.lib", 27 | "rev": "e0cad9791b0c168931ae562977703b72d9360836", 28 | "type": "github" 29 | }, 30 | "original": { 31 | "owner": "nix-community", 32 | "repo": "nixpkgs.lib", 33 | "type": "github" 34 | } 35 | }, 36 | "root": { 37 | "inputs": { 38 | "flake-utils": "flake-utils", 39 | "nixpkgs-lib": "nixpkgs-lib" 40 | } 41 | }, 42 | "systems": { 43 | "locked": { 44 | "lastModified": 1681028828, 45 | "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 46 | "owner": "nix-systems", 47 | "repo": "default", 48 | "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 49 | "type": "github" 50 | }, 51 | "original": { 52 | "owner": "nix-systems", 53 | "repo": "default", 54 | "type": "github" 55 | } 56 | } 57 | }, 58 | "root": "root", 59 | "version": 7 60 | } 61 | -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- 1 | { 2 | description = "a flake to aggregate pure nix libs which do not depend on nixpkgs"; 3 | 4 | inputs = { 5 | flake-utils.url = "github:numtide/flake-utils"; 6 | nixpkgs-lib.url = "github:nix-community/nixpkgs.lib"; 7 | }; 8 | 9 | outputs = inputs: { 10 | lib = inputs.nixpkgs-lib.lib 11 | // { flake-utils = inputs.flake-utils.lib; }; 12 | }; 13 | } 14 | --------------------------------------------------------------------------------