Skip to content

Commit

Permalink
Provide way to get sha256 without lib.fakeSha256
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Aug 4, 2023
1 parent 09a9f75 commit 5714968
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ pkgs.mkShell {
cargo-make
typos
go_1_20

# To get sha256 around pkgs.fetchFromGitHub in CLI
nix-prefetch-git
jq
];
}
4 changes: 2 additions & 2 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# FAQ
#
# A. How to get sha256?
# Q. Assume by `lib.fakeSha256` at first, you can get the hash with an error message
# A. How to get sha256 without `lib.fakeSha256`?
# Q. `nix-prefetch-git --url https://github.com/oh-my-fish/plugin-foreign-env.git --rev 3ee95536106c11073d6ff466c1681cde31001383 --quiet | jq .hash`

{
imports = [
Expand Down

0 comments on commit 5714968

Please sign in to comment.