Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft for diff]: namada #199

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
id-token: write
contents: write
steps:
- uses: DeterminateSystems/nix-installer-action@v4
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: actions/checkout@v4

- name: Create Github Release 📦
uses: ncipollo/release-action@v1
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

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

4 changes: 4 additions & 0 deletions modules/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@
inherit pkgs;
inherit (inputs) namada-src;
};
namada-src = pkgs.symlinkJoin {
name = "namada-src";
paths = [inputs.namada-src.outPath];
};
}
# This list contains attr sets that are recursively merged into the
# base attrset
Expand Down
12 changes: 9 additions & 3 deletions packages/namada.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ pkgs.rustPlatform.buildRustPackage {
src = namada-src;
nativeBuildInputs = with pkgs;
(
if stdenv.isLinux
then [pkg-config]
else [darwin.apple_sdk.frameworks.Security]
lib.optionals stdenv.isLinux
[pkg-config]
)
++ [
protobuf
Expand All @@ -19,9 +18,16 @@ pkgs.rustPlatform.buildRustPackage {
buildInputs = with pkgs;
lib.optionals stdenv.isLinux [
systemd # required for libudev in custom build script for hidapi
]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
hidapi
]
++ [
openssl
openssl.dev
];

cargoLock = {
lockFile = "${namada-src}/Cargo.lock";
outputHashes = {
Expand Down