This project packages the cardano-signer Node.js CLI using Nix and Yarn from
the excellent upstream repo:
cardano-signer.
To build the cardano-signer:
nix build -L .#cardano-signer
The CLI binary will be available to run at:
./result/bin/cardano-signer "${ARGS[@]}"
To run the CLI tool from this flake without cloning:
nix run github:johnalotoski/cardano-signer -- "${ARGS[@]}"
You can also run from a local flake path:
nix run .#cardano-signer -- "${ARGS[@]}"
To enter a dev environment with node, yarn, and helper tools:
nix develop
or, if you have direnv installed:
direnv allow
-
Update the commit
revandsha256found in thesrcRepofetchFromGitHub function and save -
Reload the devShell to preload the new source repo
-
Run
update-yarn-fileto generate a newyarn-$SHORT_REV_OR_REL_TAG.lock -
Git add the new lock file
-
Make sure the build succeeds with:
nix build -L .#cardano-signer
-
Remove the old
yarn-$OLD_SHORT_REV_OR_REL_TAG.lockfile -
Git add the deleted old lock file
-
Commit the changes, push and verify GHA CI passes
-
Celebrate! :)
result/
├── bin/
│ └── cardano-signer
└── libexec/cardano-signer/
├── deps/
│ └── cardano-signer/
├── node_modules/
└── ...