From 89a67205dd7da1e82230d3c3513bb42621f93269 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 22 Oct 2022 11:21:30 -0700 Subject: feat(home/packages): install the tool x509-info --- flake.lock | 116 +++++++++++++++++++++++++++++++++++-- flake.nix | 8 +++ home/packages/default.nix | 1 + nix/mkHomeManagerConfiguration.nix | 1 + 4 files changed, 122 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index fe372aa..302e1eb 100644 --- a/flake.lock +++ b/flake.lock @@ -84,6 +84,21 @@ "type": "github" } }, + "flake-utils_4": { + "locked": { + "lastModified": 1659877975, + "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "futils": { "locked": { "lastModified": 1659877975, @@ -182,6 +197,24 @@ "type": "github" } }, + "naersk_3": { + "inputs": { + "nixpkgs": "nixpkgs_6" + }, + "locked": { + "lastModified": 1662220400, + "narHash": "sha256-9o2OGQqu4xyLZP9K6kNe1pTHnyPz0Wr3raGYnr9AIgY=", + "owner": "nmattia", + "repo": "naersk", + "rev": "6944160c19cb591eb85bbf9b2f2768a935623ed3", + "type": "github" + }, + "original": { + "owner": "nmattia", + "repo": "naersk", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1666007537, @@ -198,11 +231,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1666007537, - "narHash": "sha256-b3TC2yQZ+HOnxgs9deQWIXNf72Ab+tfmFV1gATwApso=", + "lastModified": 1666424192, + "narHash": "sha256-rb/a7Kg9s31jqkvdOQHFrUc5ig5kB+O2ZKB8mjU2kW8=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d0f9857448e77df50d1e0b518ba0e835b797532a", + "rev": "4f8287f3d597c73b0d706cfad028c2d51821f64d", "type": "github" }, "original": { @@ -272,6 +305,36 @@ "type": "github" } }, + "nixpkgs_6": { + "locked": { + "lastModified": 1666215963, + "narHash": "sha256-+kSNzDXqoEVEryrJ9WrvGSvi784xPMXkk7jTJPFdT/k=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e66821278399ba9565178ce3b525e72275fe004e", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "nixpkgs_7": { + "locked": { + "lastModified": 1665296151, + "narHash": "sha256-uOB0oxqxN9K7XGF1hcnY+PQnlQJ+3bP2vCn/+Ru/bbc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "14ccaaedd95a488dd7ae142757884d8e125b3363", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nur": { "locked": { "lastModified": 1666027005, @@ -323,7 +386,8 @@ "nixpkgs-unstable": "nixpkgs-unstable", "nur": "nur", "pre-commit-hooks": "pre-commit-hooks", - "rust": "rust" + "rust": "rust", + "x509-tools": "x509-tools" } }, "rust": { @@ -365,6 +429,50 @@ "repo": "rust-overlay", "type": "github" } + }, + "rust-overlay_2": { + "inputs": { + "flake-utils": "flake-utils_4", + "nixpkgs": "nixpkgs_7" + }, + "locked": { + "lastModified": 1666234887, + "narHash": "sha256-WZ13mLYvByYlZKz6Q8pufvi+E3Hwo92fMKA2Kw02hRA=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "dd334e95eb46e79e52a75c80ef9ba73c3d867840", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "x509-tools": { + "inputs": { + "flake-utils": [ + "futils" + ], + "naersk": "naersk_3", + "nixpkgs": [ + "nixpkgs" + ], + "rust-overlay": "rust-overlay_2" + }, + "locked": { + "lastModified": 1666406628, + "narHash": "sha256-h/U9vrR0lw6bSgUeTqo5tbrk0DEfBc/4yoAmtT1QMdc=", + "owner": "fcuny", + "repo": "x509-info", + "rev": "406eaab3073651acff3c09deeb22e864fc9d5b23", + "type": "github" + }, + "original": { + "owner": "fcuny", + "repo": "x509-info", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 0861a89..d0dcd50 100644 --- a/flake.nix +++ b/flake.nix @@ -47,6 +47,14 @@ nixpkgs.follows = "nixpkgs"; }; }; + + x509-tools = { + url = "github:fcuny/x509-info"; + inputs = { + flake-utils.follows = "futils"; + nixpkgs.follows = "nixpkgs"; + }; + }; }; # Output config, or config for NixOS system diff --git a/home/packages/default.nix b/home/packages/default.nix index fd75556..265a767 100644 --- a/home/packages/default.nix +++ b/home/packages/default.nix @@ -37,6 +37,7 @@ in tools.ipconverter tools.seqstat tools.git-blame-stats + x509-info gh-ssh-keys ] ++ cfg.additionalPackages); diff --git a/nix/mkHomeManagerConfiguration.nix b/nix/mkHomeManagerConfiguration.nix index 29aa73c..264ba7d 100644 --- a/nix/mkHomeManagerConfiguration.nix +++ b/nix/mkHomeManagerConfiguration.nix @@ -24,6 +24,7 @@ inputs.home-manager.lib.homeManagerConfiguration { inputs.naersk.overlay inputs.rust.overlays.default inputs.gh-ssh-keys.overlay + inputs.x509-tools.overlay (final: prev: { tools = import "${self}/tools" { pkgs = prev; inherit naersk; }; -- cgit 1.4.1