Skip to content

Instantly share code, notes, and snippets.

@hhefesto
Created December 23, 2021 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hhefesto/d4080958663d4d8ccb03259a35f81650 to your computer and use it in GitHub Desktop.
Save hhefesto/d4080958663d4d8ccb03259a35f81650 to your computer and use it in GitHub Desktop.
{
"nodes": {
"fenix": {
"inputs": {
"nixpkgs": [
"solanaNix",
"nixpkgs"
],
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1635601111,
"narHash": "sha256-+UWu41BL713+zPBA1YunLto8uPLvBWqMqb/HrK0Glug=",
"owner": "nix-community",
"repo": "fenix",
"rev": "1c1a6cd1d091d11ba2ccda42e758a08e47dd0d59",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "fenix",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1638122382,
"narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "74f7e4319258e287b0f9cb95426c9853b282730b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"locked": {
"lastModified": 1637014545,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_3": {
"locked": {
"lastModified": 1634851050,
"narHash": "sha256-N83GlSGPJJdcqhUxSCS/WwW5pksYf3VP1M13cDRTSVA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c91f3de5adaf1de973b797ef7485e441a65b8935",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1640269308,
"narHash": "sha256-vBVwv3+kPrxbNyfo48cB5cc5/4tq5zlJGas/qw8XNBE=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "0c408a087b4751c887e463e3848512c12017be25",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1637453606,
"narHash": "sha256-Gy6cwUswft9xqsjWxFYEnx/63/qzaFUwatcbV5GF/GQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8afc4e543663ca0a6a4f496262cd05233737e732",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1635544589,
"narHash": "sha256-v6PTartv2TlsntrCz9YFIdRU6ihPKFvrEfKK2BSFOoE=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "47b36ad103aeff17f9be6fb7b4847d63d53f227a",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay",
"solanaNix": "solanaNix"
}
},
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1635274542,
"narHash": "sha256-Cew1/WUozM3jalItPuj4cNN8GIFMvCaJ1KXoj6wrHwE=",
"owner": "rust-analyzer",
"repo": "rust-analyzer",
"rev": "dd43f3f2d13a32199828e758ddf13176df1f17f9",
"type": "github"
},
"original": {
"owner": "rust-analyzer",
"ref": "nightly",
"repo": "rust-analyzer",
"type": "github"
}
},
"rust-overlay": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1640227139,
"narHash": "sha256-FN22WSu7hObDtBvhqNuCAW4qCN+FE9Gv97O8oO1E3L0=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "5c8f3e3facc8b2d183bd18bbf9eb760ed37b5a49",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"solanaNix": {
"inputs": {
"fenix": "fenix",
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_3",
"solanaSrc": "solanaSrc"
},
"locked": {
"lastModified": 1636315392,
"narHash": "sha256-lc8U5ExEkGXT9h1KCOiuzomLEF5+fm7L9/AeDy4nPVo=",
"owner": "cideM",
"repo": "solana-nix",
"rev": "23f6a2cf60dd5fa9df9c62ec23858de0c5dd3f95",
"type": "github"
},
"original": {
"owner": "cideM",
"ref": "fix-build-bpf",
"repo": "solana-nix",
"type": "github"
}
},
"solanaSrc": {
"flake": false,
"locked": {
"lastModified": 1633593557,
"narHash": "sha256-TqB6KHCqXKnsUnXqy8xvmDH+JNUHmFnE27sSB/V7Mg8=",
"owner": "solana-labs",
"repo": "solana",
"rev": "4892eb4e1ad278d5249b6cda8983f88effb3e98b",
"type": "github"
},
"original": {
"owner": "solana-labs",
"repo": "solana",
"rev": "4892eb4e1ad278d5249b6cda8983f88effb3e98b",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
{
description = "Solana CLI";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
solanaNix.url = "github:cideM/solana-nix/fix-build-bpf";
rust-overlay.url = "github:oxalica/rust-overlay";
# flake-compat = {
# url = "github:edolstra/flake-compat";
# flake = false;
# };
#fenix = {
# url = "github:nix-community/fenix";
# inputs.nixpkgs.follows = "nixpkgs";
#};
};
outputs = { self, nixpkgs, flake-utils, solanaNix, rust-overlay }:
flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ] (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
rec {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
libiconv
solanaNix.packages.${system}.solana
rust-bin.nightly.latest.default
#rustup
#(fenix.packages.${system}.complete.withComponents [
# "cargo"
# "clippy"
# "rust-src"
# "rustc"
# "rustfmt"
#])
#(pkgs.writeScriptBin "run" ''
# env -C program ${solanaNix.packages.x86_64-darwin.solana}/bin/cargo-build-bpf
#'')
];
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment