Skip to content

Commit

Permalink
Update Nix inputs (#87)
Browse files Browse the repository at this point in the history
* flake.lock: Update

Flake lock file updates:

• Updated input 'advisory-db':
    'github:rustsec/advisory-db/99eb308ec59409c437eb5c4f364717705b09c7e8' (2024-02-18)
  → 'github:rustsec/advisory-db/1d209d3f18c740f104380e988b5aa8eb360190d1' (2024-08-08)
• Updated input 'crane':
    'github:ipetkov/crane/2c653e4478476a52c6aa3ac0495e4dea7449ea0e' (2024-02-11)
  → 'github:ipetkov/crane/4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4' (2024-08-06)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15)
  → 'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1d21cbff6b9e7816b5daf8840129b075bef617a3' (2024-02-19)
  → 'github:NixOS/nixpkgs/4e7d996aa858660e3261b4834ab00415cfe9b0fe' (2024-08-12)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/5df5a70ad7575f6601d91f0efec95dd9bc619431' (2024-02-15)
  → 'github:cachix/pre-commit-hooks.nix/c7012d0c18567c889b948781bc74a501e92275d1' (2024-08-09)
• Removed input 'pre-commit-hooks/flake-utils'
• Removed input 'pre-commit-hooks/flake-utils/systems'
• Updated input 'pre-commit-hooks/gitignore':
    'github:hercules-ci/gitignore.nix/43e1aa1308018f37118e34d3a9cb4f5e75dc11d5' (2023-12-29)
  → 'github:hercules-ci/gitignore.nix/637db329424fd7e46cf4185293b9cc8c88c95394' (2024-02-28)
• Updated input 'pre-commit-hooks/nixpkgs':
    'github:NixOS/nixpkgs/eabe8d3eface69f5bb16c18f8662a702f50c20d5' (2024-01-09)
  → 'github:NixOS/nixpkgs/9693852a2070b398ee123a329e68f0dab5526681' (2024-06-22)
• Updated input 'pre-commit-hooks/nixpkgs-stable':
    'github:NixOS/nixpkgs/3dc440faeee9e889fe2d1b4d25ad0f430d449356' (2024-01-10)
  → 'github:NixOS/nixpkgs/194846768975b7ad2c4988bdb82572c00222c0d7' (2024-07-07)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/d500e370b26f9b14303cb39bf1509df0a920c8b0' (2024-02-18)
  → 'github:oxalica/rust-overlay/65e3dc0fe079fe8df087cd38f1fe6836a0373aad' (2024-08-12)
• Removed input 'rust-overlay/flake-utils'

* Update deprecated crane usage in Nix flake
  • Loading branch information
lafrenierejm authored Aug 15, 2024
1 parent 4bdd9b0 commit 23a7913
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 71 deletions.
93 changes: 28 additions & 65 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@

rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
inputs.nixpkgs.follows = "nixpkgs";
};

advisory-db = {
Expand All @@ -35,15 +32,15 @@
(final: prev: { inherit (self.packages.${final.system}) ripsecrets; });
} // flake-utils.lib.eachDefaultSystem (system:
let
craneLib = crane.lib.${system};
craneLib = crane.mkLib nixpkgs.legacyPackages.${system};
src = craneLib.cleanCargoSource ./.;

pkgs = import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
};

nativeBuildInputs = [ ] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
nativeBuildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [
# Additional darwin specific inputs can be set here
pkgs.gcc
pkgs.libiconv
Expand Down

0 comments on commit 23a7913

Please sign in to comment.