# Generated by crate2nix 0.6.0-alpha.0 with the command: # "generate" # See https://github.com/kolloch/crate2nix for more info. { pkgs? import { config = {}; }, lib? pkgs.lib, callPackage? pkgs.callPackage, stdenv? pkgs.stdenv, buildRustCrate? pkgs.buildRustCrate, fetchurl? pkgs.fetchurl, fetchCrate? pkgs.fetchCrate, # The features to enable for the root_crate or the workspace_members. rootFeatures? ["default"]}: rec { # # "public" attributes that we attempt to keep stable with new versions of crate2nix. # rootCrate = { packageId = "powerline-rs 0.2.0 (path+file:///home/user/Coding/Rust/powerline-rs)"; # Use this attribute to refer to the derivation building your root crate package. # You can override the features with rootCrate.build.override { features = [ "default" "feature1" ... ]; }. build = buildRustCrateWithFeatures { packageId = "powerline-rs 0.2.0 (path+file:///home/user/Coding/Rust/powerline-rs)"; features = rootFeatures; }; }; root_crate = builtins.trace "root_crate is deprecated since crate2nix 0.4. Please use rootCrate instead." rootCrate.build; # Refer your crate build derivation by name here. # You can override the features with # workspaceMembers."${crateName}".build.override { features = [ "default" "feature1" ... ]; }. workspaceMembers = { "powerline-rs" = { packageId = "powerline-rs 0.2.0 (path+file:///home/user/Coding/Rust/powerline-rs)"; build = buildRustCrateWithFeatures { packageId = "powerline-rs 0.2.0 (path+file:///home/user/Coding/Rust/powerline-rs)"; features = rootFeatures; }; }; }; workspace_members = builtins.trace "workspace_members is deprecated in crate2nix 0.4. Please use workspaceMembers instead." lib.mapAttrs (n: v: v.build) workspaceMembers; # # "private" attributes that may change in every new version of crate2nix. # # Build and dependency information for crates. # Many of the fields are passed one-to-one to buildRustCrate. # # Noteworthy: # * `crateBin = [{name = ","; path = ",";}];`: a hack to disable building the binary. # * `dependencies`/`buildDependencies`: similar to the corresponding fields for buildRustCrate. # but with additional information which is used during dependency/feature resolution. # * `resolvedDependencies`: the selected default features reported by cargo - only included for debugging. crates = { "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "ansi_term"; version = "0.11.0"; edition = "2015"; sha256 = "08fk0p2xvkqpmz3zlrwnf6l8sj2vngw464rvzspzp31sbgxbwm4v"; authors = [ "ogham@bsago.me" "Ryan Scheel (Havvy) " "Josh Triplett " ]; dependencies = { "winapi" = { packageId = "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)"; target = (target."os" == "windows"); features = [ "errhandlingapi" "consoleapi" "processenv" ]; }; }; features = { }; }; "arrayref 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "arrayref"; version = "0.3.5"; edition = "2015"; sha256 = "00dfn9lbr4pc524imc25v3rbmswiqk3jldsgmx4rdngcpxb8ssjf"; authors = [ "David Roundy " ]; features = { }; }; "arrayvec 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "arrayvec"; version = "0.4.12"; edition = "2015"; sha256 = "0g11if4ihxifdiiwk6brnywkpgbvfbfwxgfqw5a407hprcq3s49f"; authors = [ "bluss" ]; dependencies = { "nodrop" = { packageId = "nodrop 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; }; features = { "default" = [ "std" ]; "serde-1" = [ "serde" ]; }; }; "atty 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "atty"; version = "0.2.13"; edition = "2015"; sha256 = "0a1ii8h9fvvrq05bz7j135zjjz1sjz6n2invn2ngxqri0jxgmip2"; authors = [ "softprops " ]; dependencies = { "libc" = { packageId = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; target = target."unix"; }; "winapi" = { packageId = "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)"; target = target."windows"; features = [ "consoleapi" "processenv" "minwinbase" "minwindef" "winbase" ]; }; }; features = { }; }; "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "autocfg"; version = "0.1.7"; edition = "2015"; sha256 = "01iq4rs9kanj88pbwjxzqp5k4bgdsvz3y398nljz441rfws11mi4"; authors = [ "Josh Stone " ]; features = { }; }; "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "backtrace"; version = "0.3.40"; edition = "2018"; sha256 = "0xzgw3vldpfcfhsxs17jx3l6vacfxm93g3l363k5vk0nc7avgzar"; authors = [ "The Rust Project Developers" ]; dependencies = { "backtrace-sys" = { packageId = "backtrace-sys 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; "cfg-if" = "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)"; "libc" = { packageId = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; "rustc-demangle" = "rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "default" = [ "std" "libunwind" "libbacktrace" "dladdr" "dbghelp" ]; "gimli-symbolize" = [ "addr2line" "findshlibs" "memmap" "goblin" ]; "libbacktrace" = [ "backtrace-sys" ]; "rustc-dep-of-std" = [ "backtrace-sys/rustc-dep-of-std" "cfg-if/rustc-dep-of-std" "core" "compiler_builtins" "libc/rustc-dep-of-std" "rustc-demangle/rustc-dep-of-std" ]; "serialize-rustc" = [ "rustc-serialize" ]; "serialize-serde" = [ "serde" ]; "verify-winapi" = [ "winapi/dbghelp" "winapi/handleapi" "winapi/libloaderapi" "winapi/minwindef" "winapi/processthreadsapi" "winapi/synchapi" "winapi/winbase" "winapi/winnt" ]; }; resolvedDefaultFeatures = [ "backtrace-sys" "dbghelp" "default" "dladdr" "libbacktrace" "libunwind" "std" ]; }; "backtrace-sys 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "backtrace-sys"; version = "0.1.32"; edition = "2015"; sha256 = "1jrb7450v9kyqrjc97vzckbpwj9jakvc1jkq95i46g6mn9kvqkgr"; authors = [ "Alex Crichton " ]; dependencies = { "libc" = { packageId = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; }; buildDependencies = { "cc" = "cc 1.0.46 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "rustc-dep-of-std" = [ "core" "compiler_builtins" ]; }; }; "base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "base64"; version = "0.10.1"; edition = "2015"; sha256 = "1zz3jq619hahla1f70ra38818b5n8cp4iilij81i90jq6z7hlfhg"; authors = [ "Alice Maz " "Marshall Pierce " ]; dependencies = { "byteorder" = "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "bitflags"; version = "1.2.1"; edition = "2015"; sha256 = "0b77awhpn7yaqjjibm69ginfn996azx5vkzfjj39g3wbsqs7mkxg"; authors = [ "The Rust Project Developers" ]; features = { }; resolvedDefaultFeatures = [ "default" ]; }; "blake2b_simd 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "blake2b_simd"; version = "0.5.8"; edition = "2018"; sha256 = "14974amxa9lgn8syjp1am4yj4vhmcc27k21bvyz4fsawv3hfv204"; authors = [ "Jack O'Connor" ]; dependencies = { "arrayref" = "arrayref 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)"; "arrayvec" = { packageId = "arrayvec 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; "constant_time_eq" = "constant_time_eq 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "default" = [ "std" ]; }; resolvedDefaultFeatures = [ "default" "std" ]; }; "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "byteorder"; version = "1.3.2"; edition = "2015"; sha256 = "099fxwc79ncpcl8dgg9hql8gznz11a3sjs7pai0mg6w8r05khvdx"; authors = [ "Andrew Gallant " ]; features = { "default" = [ "std" ]; }; resolvedDefaultFeatures = [ "default" "std" ]; }; "cc 1.0.46 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "cc"; version = "1.0.46"; edition = "2018"; # Hack to suppress building binaries crateBin = [{name = ","; path = ",";}]; sha256 = "1r5cp143kvbyxcwna60jxlrjq8sc78sxj912hh01g1g6kkhm7mb6"; authors = [ "Alex Crichton " ]; dependencies = { "jobserver" = { packageId = "jobserver 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; "num_cpus" = { packageId = "num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; }; features = { "parallel" = [ "num_cpus" "jobserver" ]; }; resolvedDefaultFeatures = [ "jobserver" "num_cpus" "parallel" ]; }; "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "cfg-if"; version = "0.1.10"; edition = "2018"; sha256 = "0x52qzpbyl2f2jqs7kkqzgfki2cpq99gpfjjigdp8pwwfqk01007"; authors = [ "Alex Crichton " ]; features = { "rustc-dep-of-std" = [ "core" "compiler_builtins" ]; }; }; "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "chrono"; version = "0.4.9"; edition = "2015"; sha256 = "0nw75j1q0idg5a57k68l87422nq8naq818cdxh390byws63a8yfj"; authors = [ "Kang Seonghoon " "Brandon W Maister " ]; dependencies = { "libc" = { packageId = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; "num-integer" = { packageId = "num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; "num-traits" = { packageId = "num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; "time" = { packageId = "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; }; features = { "clock" = [ "time" ]; "default" = [ "clock" ]; "wasmbind" = [ "wasm-bindgen" "js-sys" ]; }; resolvedDefaultFeatures = [ "clock" "default" "time" ]; }; "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "clap"; version = "2.33.0"; edition = "2015"; sha256 = "054n9ngh6pkknpmd4acgdsp40iw6f5jzq8a4h2b76gnbvk6p5xjh"; authors = [ "Kevin K. " ]; dependencies = { "ansi_term" = { packageId = "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; target = (!target."windows"); }; "atty" = { packageId = "atty 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; "bitflags" = "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)"; "strsim" = { packageId = "strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; "textwrap" = "textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)"; "unicode-width" = "unicode-width 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)"; "vec_map" = { packageId = "vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; }; features = { "color" = [ "ansi_term" "atty" ]; "default" = [ "suggestions" "color" "vec_map" ]; "doc" = [ "yaml" ]; "lints" = [ "clippy" ]; "suggestions" = [ "strsim" ]; "wrap_help" = [ "term_size" "textwrap/term_size" ]; "yaml" = [ "yaml-rust" ]; }; resolvedDefaultFeatures = [ "ansi_term" "atty" "color" "default" "strsim" "suggestions" "vec_map" ]; }; "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "cloudabi"; version = "0.0.3"; edition = "2015"; sha256 = "1z9lby5sr6vslfd14d6igk03s7awf91mxpsfmsp3prxbxlk0x7h5"; libPath = "cloudabi.rs"; authors = [ "Nuxi (https://nuxi.nl/) and contributors" ]; dependencies = { "bitflags" = { packageId = "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; }; features = { "default" = [ "bitflags" ]; }; resolvedDefaultFeatures = [ "bitflags" "default" ]; }; "constant_time_eq 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "constant_time_eq"; version = "0.1.4"; edition = "2015"; sha256 = "0k3b5yavx7si8cy030py6bhgmg24sghzs8chbs4d4r13wjp5c5ih"; authors = [ "Cesar Eduardo Barros " ]; features = { }; }; "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "crossbeam-utils"; version = "0.6.6"; edition = "2015"; sha256 = "01gxccmrjkkcavdh8fc01kj3b5fmk10f0lkx66jmnv69kcssry72"; authors = [ "The Crossbeam Project Developers" ]; dependencies = { "cfg-if" = "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)"; "lazy_static" = { packageId = "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; }; features = { "default" = [ "std" ]; "std" = [ "lazy_static" ]; }; resolvedDefaultFeatures = [ "default" "lazy_static" "std" ]; }; "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "dirs"; version = "2.0.2"; edition = "2015"; sha256 = "0zk0kdnl2hd3qk76yq6yk7hc7s73gpnnzi1p208ygrh270y96fpx"; authors = [ "Simon Ochsenreither " ]; dependencies = { "cfg-if" = "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)"; "dirs-sys" = "dirs-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "dirs-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "dirs-sys"; version = "0.3.4"; edition = "2015"; sha256 = "1hb7h6g5xyhc26v8d8fksxfw1gv6kl427jzp9vhl7y8v6992d80d"; authors = [ "Simon Ochsenreither " ]; dependencies = { "cfg-if" = "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)"; "libc" = { packageId = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; target = target."unix"; }; "redox_users" = { packageId = "redox_users 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)"; target = (target."os" == "redox"); }; "winapi" = { packageId = "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)"; target = target."windows"; features = [ "knownfolders" "objbase" "shlobj" "winbase" "winerror" ]; }; }; features = { }; }; "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "failure"; version = "0.1.6"; edition = "2015"; sha256 = "09qsxzrxzqz7h76sd5klfk6nq407way77j898519ll7pr5yk3j65"; authors = [ "Without Boats " ]; dependencies = { "backtrace" = { packageId = "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; "failure_derive" = { packageId = "failure_derive 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; }; features = { "default" = [ "std" "derive" ]; "derive" = [ "failure_derive" ]; "std" = [ "backtrace" ]; }; resolvedDefaultFeatures = [ "backtrace" "default" "derive" "failure_derive" "std" ]; }; "failure_derive 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "failure_derive"; version = "0.1.6"; edition = "2015"; sha256 = "00ps2s591hh2sicdv3ix6gv3qf39n5qf67q0mjff90ha8hvsykpj"; procMacro = true; authors = [ "Without Boats " ]; dependencies = { "proc-macro2" = "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)"; "quote" = "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)"; "syn" = "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)"; "synstructure" = "synstructure 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "fuchsia-cprng"; version = "0.1.1"; edition = "2018"; sha256 = "07apwv9dj716yjlcj29p94vkqn5zmfh7hlrqvrjx3wzshphc95h9"; authors = [ "Erick Tryzelaar " ]; features = { }; }; "getrandom 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "getrandom"; version = "0.1.12"; edition = "2018"; sha256 = "0n3cyf8vm82hbbj6xzgaszjn852i0jl9qxibl7im7mvn7s9yrvb6"; authors = [ "The Rand Project Developers" ]; dependencies = { "cfg-if" = "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)"; "libc" = { packageId = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; target = (target."unix" || (target."os" == "redox")); }; "wasi" = { packageId = "wasi 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)"; target = (target."os" == "wasi"); }; }; features = { "rustc-dep-of-std" = [ "compiler_builtins" "core" ]; }; }; "git2 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "git2"; version = "0.10.1"; edition = "2018"; sha256 = "18a4n241m34vb1myyh5ysg3608qaz7x72p2cviylk4gp72vk4alq"; authors = [ "Josh Triplett " "Alex Crichton " ]; dependencies = { "bitflags" = "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)"; "libc" = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; "libgit2-sys" = "libgit2-sys 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)"; "log" = "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)"; "url" = "url 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "default" = [ "ssh" "https" "ssh_key_from_memory" ]; "https" = [ "libgit2-sys/https" "openssl-sys" "openssl-probe" ]; "ssh" = [ "libgit2-sys/ssh" ]; "ssh_key_from_memory" = [ "libgit2-sys/ssh_key_from_memory" ]; "vendored-openssl" = [ "openssl-sys/vendored" ]; }; }; "idna 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "idna"; version = "0.2.0"; edition = "2015"; sha256 = "1mm05aq43qc5n492njnac5xn4rhiraii25xc0hwppr471jzijh8d"; authors = [ "The rust-url developers" ]; dependencies = { "matches" = "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)"; "unicode-bidi" = "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)"; "unicode-normalization" = "unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "jobserver 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "jobserver"; version = "0.1.17"; edition = "2015"; sha256 = "0qazd61l3zgnchzrr9gkvvdzdz1d6g8xrc2skac5qa0ykd1yblyx"; authors = [ "Alex Crichton " ]; dependencies = { "getrandom" = { packageId = "getrandom 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)"; target = target."windows"; }; "libc" = { packageId = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; target = target."unix"; }; "log" = "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "lazy_static"; version = "1.4.0"; edition = "2015"; sha256 = "13h6sdghdcy7vcqsm2gasfw3qg7ssa0fl3sw7lq6pdkbk52wbyfr"; authors = [ "Marvin Löbel " ]; features = { "spin_no_std" = [ "spin" ]; }; }; "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "libc"; version = "0.2.65"; edition = "2015"; sha256 = "0nx1n3xvwj2ikw1d6v17154jx2sb9sgrv6fwbnq79c614a3mhmad"; authors = [ "The Rust Project Developers" ]; features = { "default" = [ "std" ]; "rustc-dep-of-std" = [ "align" "rustc-std-workspace-core" ]; "use_std" = [ "std" ]; }; resolvedDefaultFeatures = [ "default" "std" ]; }; "libgit2-sys 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "libgit2-sys"; version = "0.9.1"; edition = "2018"; sha256 = "08cc5k5w9h1gp411lgnz3q7n3bhl4vq6a54bbnalwqqx9i4scb6x"; libName = "libgit2_sys"; libPath = "lib.rs"; authors = [ "Josh Triplett " "Alex Crichton " ]; dependencies = { "libc" = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; "libz-sys" = "libz-sys 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)"; }; buildDependencies = { "cc" = { packageId = "cc 1.0.46 (registry+https://github.com/rust-lang/crates.io-index)"; features = [ "parallel" ]; }; "pkg-config" = "pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "https" = [ "openssl-sys" ]; "ssh" = [ "libssh2-sys" ]; }; }; "libz-sys 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "libz-sys"; version = "1.0.25"; edition = "2015"; sha256 = "195jzg8mgjbvmkbpx1rzkzrqm0g2fdivk79v44c9lzl64r3f9fym"; authors = [ "Alex Crichton " ]; dependencies = { "libc" = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; }; buildDependencies = { "cc" = "cc 1.0.46 (registry+https://github.com/rust-lang/crates.io-index)"; "pkg-config" = "pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)"; "vcpkg" = { packageId = "vcpkg 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)"; target = (target."env" == "msvc"); }; }; features = { }; }; "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "log"; version = "0.4.8"; edition = "2015"; sha256 = "0wvzzzcn89dai172rrqcyz06pzldyyy0lf0w71csmn206rdpnb15"; authors = [ "The Rust Project Developers" ]; dependencies = { "cfg-if" = "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "kv_unstable_sval" = [ "kv_unstable" "sval/fmt" ]; }; }; "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "matches"; version = "0.1.8"; edition = "2015"; sha256 = "03hl636fg6xggy0a26200xs74amk3k9n0908rga2szn68agyz3cv"; libPath = "lib.rs"; authors = [ "Simon Sapin " ]; features = { }; }; "nodrop 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "nodrop"; version = "0.1.14"; edition = "2015"; sha256 = "0b4adir378n2irr76z8grc9jxif8vlyy01rid8j4r716y9y4dg9r"; authors = [ "bluss" ]; features = { "default" = [ "std" ]; "use_union" = [ "nodrop-union" ]; }; }; "num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "num-integer"; version = "0.1.41"; edition = "2015"; sha256 = "1y45nh9xlp2dra9svb1wfsy65fysm3k1w4m8jynywccq645yixid"; authors = [ "The Rust Project Developers" ]; dependencies = { "num-traits" = { packageId = "num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; }; buildDependencies = { "autocfg" = "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "default" = [ "std" ]; "i128" = [ "num-traits/i128" ]; "std" = [ "num-traits/std" ]; }; }; "num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "num-traits"; version = "0.2.8"; edition = "2015"; sha256 = "1mnlmy35n734n9xlq0qkfbgzz33x09a1s4rfj30p1976p09b862v"; authors = [ "The Rust Project Developers" ]; buildDependencies = { "autocfg" = "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "default" = [ "std" ]; }; }; "num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "num_cpus"; version = "1.10.1"; edition = "2015"; sha256 = "1zi5s2cbnqqb0k0kdd6gqn2x97f9bssv44430h6w28awwzppyh8i"; authors = [ "Sean McArthur " ]; dependencies = { "libc" = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "percent-encoding"; version = "2.1.0"; edition = "2015"; sha256 = "0i838f2nr81585ckmfymf8l1x1vdmx6n8xqvli0lgcy60yl2axy3"; libPath = "lib.rs"; authors = [ "The rust-url developers" ]; features = { }; }; "pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "pkg-config"; version = "0.3.16"; edition = "2015"; sha256 = "1a2gg5a9l74brz1vzkkzfl8aihd7b4rk3vhbmiahkmpzavywza5j"; authors = [ "Alex Crichton " ]; features = { }; }; "powerline-rs 0.2.0 (path+file:///home/user/Coding/Rust/powerline-rs)" = rec { crateName = "powerline-rs"; version = "0.2.0"; edition = "2018"; src = (builtins.filterSource sourceFilter ./.); authors = [ "jD91mZM2 " ]; dependencies = { "chrono" = { packageId = "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; "clap" = "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)"; "dirs" = "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)"; "git2" = { packageId = "git2 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; usesDefaultFeatures = false; }; "users" = { packageId = "users 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; }; }; buildDependencies = { "clap" = "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "default" = [ "chrono" "git2" "users" ]; }; resolvedDefaultFeatures = [ "chrono" "default" "git2" "users" ]; }; "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "proc-macro2"; version = "1.0.6"; edition = "2018"; sha256 = "1l56ss9ip8cg6764cpi9y8dv7nsyqf2i4hb7sn29zx61n03jr81z"; authors = [ "Alex Crichton " ]; dependencies = { "unicode-xid" = "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "default" = [ "proc-macro" ]; }; resolvedDefaultFeatures = [ "default" "proc-macro" ]; }; "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "quote"; version = "1.0.2"; edition = "2018"; sha256 = "0r7030w7dymarn92gjgm02hsm04fwsfs6f1l20wdqiyrm9z8rs5q"; authors = [ "David Tolnay " ]; dependencies = { "proc-macro2" = { packageId = "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; }; features = { "default" = [ "proc-macro" ]; "proc-macro" = [ "proc-macro2/proc-macro" ]; }; resolvedDefaultFeatures = [ "default" "proc-macro" ]; }; "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "rand_core"; version = "0.3.1"; edition = "2015"; sha256 = "0q0ssgpj9x5a6fda83nhmfydy7a6c0wvxm0jhncsmjx8qp8gw91m"; authors = [ "The Rand Project Developers" "The Rust Project Developers" ]; dependencies = { "rand_core" = "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "alloc" = [ "rand_core/alloc" ]; "default" = [ "std" ]; "serde1" = [ "rand_core/serde1" ]; "std" = [ "rand_core/std" ]; }; }; "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "rand_core"; version = "0.4.2"; edition = "2015"; sha256 = "18zpzwn4bl7lp9f36iacy8mvdnfrhfmzsl35gmln98dcindff2ly"; authors = [ "The Rand Project Developers" "The Rust Project Developers" ]; features = { "serde1" = [ "serde" "serde_derive" ]; "std" = [ "alloc" ]; }; resolvedDefaultFeatures = [ "alloc" "std" ]; }; "rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "rand_os"; version = "0.1.3"; edition = "2015"; sha256 = "0ywwspizgs9g8vzn6m5ix9yg36n15119d6n792h7mk4r5vs0ww4j"; authors = [ "The Rand Project Developers" ]; dependencies = { "cloudabi" = { packageId = "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)"; target = (target."os" == "cloudabi"); }; "fuchsia-cprng" = { packageId = "fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)"; target = (target."os" == "fuchsia"); }; "libc" = { packageId = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; target = target."unix"; }; "rand_core" = { packageId = "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)"; features = [ "std" ]; }; "rdrand" = { packageId = "rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)"; target = (target."env" == "sgx"); }; "winapi" = { packageId = "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)"; target = target."windows"; features = [ "minwindef" "ntsecapi" "winnt" ]; }; }; features = { }; }; "rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "rdrand"; version = "0.4.0"; edition = "2015"; sha256 = "15hrcasn0v876wpkwab1dwbk9kvqwrb3iv4y4dibb6yxnfvzwajk"; authors = [ "Simonas Kazlauskas " ]; dependencies = { "rand_core" = { packageId = "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; }; features = { "default" = [ "std" ]; }; resolvedDefaultFeatures = [ "default" "std" ]; }; "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "redox_syscall"; version = "0.1.56"; edition = "2015"; sha256 = "0jcp8nd947zcy938bz09pzlmi3vyxfdzg92pjxdvvk0699vwcc26"; libName = "syscall"; authors = [ "Jeremy Soller " ]; features = { }; }; "redox_users 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "redox_users"; version = "0.3.1"; edition = "2015"; sha256 = "0kqc1vjmkcvgkxjpqva3nyqd9dixivsh4qswxclyqf7ql8a2g17s"; authors = [ "Jose Narvaez " "Wesley Hershberger " ]; dependencies = { "failure" = "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)"; "rand_os" = "rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)"; "redox_syscall" = "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)"; "rust-argon2" = "rust-argon2 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "rust-argon2 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "rust-argon2"; version = "0.5.1"; edition = "2015"; sha256 = "049dqwn63i6xix55cnh8n4iqm2d3yzpisfsc2568vfmaaa4866d2"; libName = "argon2"; authors = [ "Martijn Rijkeboer " ]; dependencies = { "base64" = "base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)"; "blake2b_simd" = "blake2b_simd 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)"; "crossbeam-utils" = "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "rustc-demangle"; version = "0.1.16"; edition = "2015"; sha256 = "0zmn448d0f898ahfkz7cir0fi0vk84dabjpw84mk6a1r6nf9vzmi"; authors = [ "Alex Crichton " ]; features = { "rustc-dep-of-std" = [ "core" "compiler_builtins" ]; }; }; "smallvec 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "smallvec"; version = "0.6.10"; edition = "2015"; sha256 = "01w7xd79q0bwn683gk4ryw50ad1zzxkny10f7gkbaaj1ax6f4q4h"; libPath = "lib.rs"; authors = [ "Simon Sapin " ]; features = { "default" = [ "std" ]; }; resolvedDefaultFeatures = [ "default" "std" ]; }; "strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "strsim"; version = "0.8.0"; edition = "2015"; sha256 = "0d3jsdz22wgjyxdakqnvdgmwjdvkximz50d9zfk4qlalw635qcvy"; authors = [ "Danny Guo " ]; features = { }; }; "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "syn"; version = "1.0.5"; edition = "2018"; sha256 = "08qbk425r8c4q4rrpq1q9wkd3v3bji8nlfaxj8v4l7lkpjkh0xgs"; authors = [ "David Tolnay " ]; dependencies = { "proc-macro2" = { packageId = "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)"; usesDefaultFeatures = false; }; "quote" = { packageId = "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)"; optional = true; usesDefaultFeatures = false; }; "unicode-xid" = "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "default" = [ "derive" "parsing" "printing" "clone-impls" "proc-macro" ]; "printing" = [ "quote" ]; "proc-macro" = [ "proc-macro2/proc-macro" "quote/proc-macro" ]; }; resolvedDefaultFeatures = [ "clone-impls" "default" "derive" "extra-traits" "parsing" "printing" "proc-macro" "quote" "visit" ]; }; "synstructure 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "synstructure"; version = "0.12.1"; edition = "2018"; sha256 = "19r76q37zdz4ja37s4gnq317liqnamawydgkz240ak9h4pzm95wc"; authors = [ "Nika Layzell " ]; dependencies = { "proc-macro2" = "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)"; "quote" = "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)"; "syn" = { packageId = "syn 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)"; features = [ "visit" "extra-traits" ]; }; "unicode-xid" = "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "textwrap"; version = "0.11.0"; edition = "2015"; sha256 = "0s25qh49n7kjayrdj4q3v0jk0jc6vy88rdw0bvgfxqlscpqpxi7d"; authors = [ "Martin Geisler " ]; dependencies = { "unicode-width" = "unicode-width 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "time"; version = "0.1.42"; edition = "2015"; sha256 = "1ny809kmdjwd4b478ipc33dz7q6nq7rxk766x8cnrg6zygcksmmx"; authors = [ "The Rust Project Developers" ]; dependencies = { "libc" = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; "redox_syscall" = { packageId = "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)"; target = (target."os" == "redox"); }; "winapi" = { packageId = "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)"; target = target."windows"; features = [ "std" "minwinbase" "minwindef" "ntdef" "profileapi" "sysinfoapi" "timezoneapi" ]; }; }; features = { }; }; "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "unicode-bidi"; version = "0.3.4"; edition = "2015"; sha256 = "0lcd6jasrf8p9p0q20qyf10c6xhvw40m2c4rr105hbk6zy26nj1q"; libName = "unicode_bidi"; authors = [ "The Servo Project Developers" ]; dependencies = { "matches" = "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "flame_it" = [ "flame" "flamer" ]; "with_serde" = [ "serde" ]; }; resolvedDefaultFeatures = [ "default" ]; }; "unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "unicode-normalization"; version = "0.1.8"; edition = "2015"; sha256 = "1pb26i2xd5zz0icabyqahikpca0iwj2jd4145pczc4bb7p641dsz"; authors = [ "kwantam " ]; dependencies = { "smallvec" = "smallvec 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "unicode-width 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "unicode-width"; version = "0.1.6"; edition = "2015"; sha256 = "1mss965j7d8pv7z7zg6qfkcb7lyhxkxvbh8akzr4xxxx3vzazwsi"; authors = [ "kwantam " ]; features = { "rustc-dep-of-std" = [ "std" "core" "compiler_builtins" ]; }; resolvedDefaultFeatures = [ "default" ]; }; "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "unicode-xid"; version = "0.2.0"; edition = "2015"; sha256 = "1c85gb3p3qhbjvfyjb31m06la4f024jx319k10ig7n47dz2fk8v7"; authors = [ "erick.tryzelaar " "kwantam " ]; features = { }; resolvedDefaultFeatures = [ "default" ]; }; "url 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "url"; version = "2.1.0"; edition = "2015"; sha256 = "0mvv28fvrrv3hc064gjgpqjvjn1j151qbi9i5bcilal6rkcd1brq"; authors = [ "The rust-url developers" ]; dependencies = { "idna" = "idna 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)"; "matches" = "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)"; "percent-encoding" = "percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { }; }; "users 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "users"; version = "0.9.1"; edition = "2015"; sha256 = "0k5fc6hq7qmanfrvllij6qqmk9m9h8zmk17gwhcyz1dv11f6hy21"; authors = [ "Benjamin Sago " ]; dependencies = { "libc" = "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)"; }; features = { "default" = [ "cache" "mock" ]; }; resolvedDefaultFeatures = [ "cache" "default" "mock" ]; }; "vcpkg 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "vcpkg"; version = "0.2.7"; edition = "2015"; sha256 = "1lwykbbscbdy4nhrfidgg3rk2xw9cvx5672sx1c97wm8y3vjpcd9"; authors = [ "Jim McGrath " ]; features = { }; }; "vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "vec_map"; version = "0.8.1"; edition = "2015"; sha256 = "1jj2nrg8h3l53d43rwkpkikq5a5x15ms4rf1rw92hp5lrqhi8mpi"; authors = [ "Alex Crichton " "Jorge Aparicio " "Alexis Beingessner " "Brian Anderson <>" "tbu- <>" "Manish Goregaokar <>" "Aaron Turon " "Adolfo Ochagavía <>" "Niko Matsakis <>" "Steven Fackler <>" "Chase Southwood " "Eduard Burtescu <>" "Florian Wilkens <>" "Félix Raimundo <>" "Tibor Benke <>" "Markus Siemens " "Josh Branchaud " "Huon Wilson " "Corey Farwell " "Aaron Liblong <>" "Nick Cameron " "Patrick Walton " "Felix S Klock II <>" "Andrew Paseltiner " "Sean McArthur " "Vadim Petrochenkov <>" ]; features = { "eders" = [ "serde" ]; }; }; "wasi 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "wasi"; version = "0.7.0"; edition = "2018"; sha256 = "1lqknxy8x9mrsy0pna6xlwzypbhli73nbai9gmin5f4z1ghlng25"; authors = [ "The Cranelift Project Developers" ]; features = { "default" = [ "alloc" ]; "rustc-dep-of-std" = [ "compiler_builtins" "core" "rustc-std-workspace-alloc" ]; }; resolvedDefaultFeatures = [ "alloc" "default" ]; }; "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "winapi"; version = "0.3.8"; edition = "2015"; sha256 = "084ialbgww1vxry341fmkg5crgpvab3w52ahx1wa54yqjgym0vxs"; authors = [ "Peter Atashian " ]; dependencies = { "winapi-i686-pc-windows-gnu" = { packageId = "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)"; target = (stdenv.hostPlatform.config == "i686-pc-windows-gnu"); }; "winapi-x86_64-pc-windows-gnu" = { packageId = "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)"; target = (stdenv.hostPlatform.config == "x86_64-pc-windows-gnu"); }; }; features = { "debug" = [ "impl-debug" ]; }; resolvedDefaultFeatures = [ "consoleapi" "errhandlingapi" "knownfolders" "minwinbase" "minwindef" "ntdef" "ntsecapi" "objbase" "processenv" "profileapi" "shlobj" "std" "sysinfoapi" "timezoneapi" "winbase" "winerror" "winnt" ]; }; "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "winapi-i686-pc-windows-gnu"; version = "0.4.0"; edition = "2015"; sha256 = "05ihkij18r4gamjpxj4gra24514can762imjzlmak5wlzidplzrp"; authors = [ "Peter Atashian " ]; features = { }; }; "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = rec { crateName = "winapi-x86_64-pc-windows-gnu"; version = "0.4.0"; edition = "2015"; sha256 = "0n1ylmlsb8yg1v583i4xy0qmqg42275flvbc51hdqjjfjcl9vlbj"; authors = [ "Peter Atashian " ]; features = { }; }; }; # # crate2nix/default.nix (excerpt start) # # Target (platform) data for conditional dependencies. # This corresponds to what buildRustCrate is setting. target = { unix = true; windows = false; # This doesn't appear to be officially documented anywhere yet. # See https://github.com/rust-lang-nursery/rust-forge/issues/101. os = if stdenv.hostPlatform.isDarwin then "macos" else stdenv.hostPlatform.parsed.kernel.name; arch = stdenv.hostPlatform.parsed.cpu.name; family = "unix"; env = "gnu"; endian = if stdenv.hostPlatform.parsed.cpu.significantByte.name == "littleEndian" then "little" else "big"; pointer_width = toString stdenv.hostPlatform.parsed.cpu.bits; vendor = stdenv.hostPlatform.parsed.vendor.name; debug_assertions = false; }; /* Filters common temp files and build files */ # TODO(pkolloch): Substitute with gitignore filter sourceFilter = name: type: let baseName = builtins.baseNameOf (builtins.toString name); in ! ( # Filter out git baseName == ".gitignore" || (type == "directory" && baseName == ".git" ) || # Filter out build results (type == "directory" && ( baseName == "target" || baseName == "_site" || baseName == ".sass-cache" || baseName == ".jekyll-metadata" || baseName == "build-artifacts" )) || # Filter out nix-build result symlinks (type == "symlink" && lib.hasPrefix "result" baseName) || # Filter out IDE config (type == "directory" && ( baseName == ".idea" || baseName == ".vscode" )) || lib.hasSuffix ".iml" baseName || # Filter out nix build files # lib.hasSuffix ".nix" baseName || # Filter out editor backup / swap files. lib.hasSuffix "~" baseName || builtins.match "^\\.sw[a-z]$$" baseName != null || builtins.match "^\\..*\\.sw[a-z]$$" baseName != null || lib.hasSuffix ".tmp" baseName || lib.hasSuffix ".bak" baseName || baseName == "tests.nix" ); /* A restricted overridable version of buildRustCrateWithFeaturesImpl. */ buildRustCrateWithFeatures = {packageId, features}: lib.makeOverridable ({features}: buildRustCrateWithFeaturesImpl {inherit packageId features;}) { inherit features; }; /* Returns a buildRustCrate derivation for the given packageId and features. */ buildRustCrateWithFeaturesImpl = { crateConfigs? crates, packageId, features } @ args: assert (builtins.isAttrs crateConfigs); assert (builtins.isString packageId); assert (builtins.isList features); let mergedFeatures = mergePackageFeatures args; buildByPackageId = packageId: let features = mergedFeatures."${packageId}" or []; crateConfig = lib.filterAttrs (n: v: n != "resolvedDefaultFeatures") crateConfigs."${packageId}"; dependencies = dependencyDerivations buildByPackageId features (crateConfig.dependencies or {}); buildDependencies = dependencyDerivations buildByPackageId features (crateConfig.buildDependencies or {}); dependenciesWithRenames = lib.filterAttrs (n: v: v ? "rename") (crateConfig.buildDependencies or {} // crateConfig.dependencies or {}); crateRenames = lib.mapAttrs (name: value: value.rename or name) dependenciesWithRenames; in buildRustCrate (crateConfig // { inherit features dependencies buildDependencies crateRenames; }); in buildByPackageId packageId; /* Returns the actual derivations for the given dependencies. */ dependencyDerivations = buildByPackageId: features: dependencies: assert (builtins.isFunction buildByPackageId); assert (builtins.isList features); assert (builtins.isAttrs dependencies); let enabledDependencies = filterEnabledDependencies dependencies features; depDerivation = dependencyName: dependency: buildByPackageId (dependencyPackageId dependency); in builtins.attrValues (lib.mapAttrs depDerivation enabledDependencies); /* Returns differences between cargo default features and crate2nix default features. * * This is useful for verifying the feature resolution in crate2nix. */ diffDefaultPackageFeatures = {crateConfigs ? crates, packageId}: assert (builtins.isAttrs crateConfigs); let prefixValues = prefix: lib.mapAttrs (n: v: { "${prefix}" = v; }); mergedFeatures = prefixValues "crate2nix" (mergePackageFeatures {inherit crateConfigs packageId; features = ["default"]; }); configs = prefixValues "cargo" crateConfigs; combined = lib.foldAttrs (a: b: a // b) {} [ mergedFeatures configs ]; onlyInCargo = builtins.attrNames (lib.filterAttrs (n: v: !(v ? "crate2nix" ) && (v ? "cargo")) combined); onlyInCrate2Nix = builtins.attrNames (lib.filterAttrs (n: v: (v ? "crate2nix" ) && !(v ? "cargo")) combined); differentFeatures = lib.filterAttrs (n: v: (v ? "crate2nix" ) && (v ? "cargo") && (v.crate2nix.features or []) != (v."cargo".resolved_default_features or [])) combined; in builtins.toJSON { inherit onlyInCargo onlyInCrate2Nix differentFeatures; }; /* Returns the feature configuration by package id for the given input crate. */ mergePackageFeatures = {crateConfigs ? crates, packageId, features} @ args: assert (builtins.isAttrs crateConfigs); assert (builtins.isString packageId); assert (builtins.isList features); let packageFeatures = listOfPackageFeatures args; grouped = lib.groupBy (x: x.packageId) packageFeatures; in lib.mapAttrs (n: v: sortedUnique (builtins.concatLists (builtins.map (v: v.features) v))) grouped; /* Returns a { packageId, features } attribute set for every package needed for building the package for the given packageId with the given features. Returns multiple, potentially conflicting attribute sets for dependencies that are reachable by multiple paths in the dependency tree. */ listOfPackageFeatures = {crateConfigs ? crates, packageId, features, dependencyPath? [packageId]} @ args: assert (builtins.isAttrs crateConfigs); assert (builtins.isString packageId); assert (builtins.isList features); let crateConfig = crateConfigs."${packageId}" or (builtins.throw "Package not found: ${packageId}"); expandedFeatures = expandFeatures (crateConfig.features or {}) features; depWithResolvedFeatures = dependencyName: dependency: let packageId = dependencyPackageId dependency; features = dependencyFeatures expandedFeatures dependencyName dependency; in { inherit packageId features; }; resolveDependencies = path: dependencies: assert (builtins.isAttrs dependencies); let enabledDependencies = filterEnabledDependencies dependencies expandedFeatures; directDependencies = builtins.attrValues (lib.mapAttrs depWithResolvedFeatures enabledDependencies); in builtins.concatMap ({packageId, features}: listOfPackageFeatures { # This is purely for debugging. dependencyPath = dependencyPath ++ [path packageId]; inherit crateConfigs packageId features; }) directDependencies; resolvedDependencies = builtins.concatLists [ (resolveDependencies "dependencies" (crateConfig.dependencies or {})) (resolveDependencies "buildDependencies" (crateConfig.buildDependencies or {})) ]; in [{inherit packageId; features = expandedFeatures;}] ++ resolvedDependencies; /* Returns the enabled dependencies given the enabled features. */ filterEnabledDependencies = dependencies: features: assert (builtins.isAttrs dependencies); assert (builtins.isList features); lib.filterAttrs (depName: dep: builtins.isString dep || dep.target or true && (!(dep.optional or false) || builtins.any (doesFeatureEnableDependency depName) features)) dependencies; /* Returns whether the given feature should enable the given dependency. */ doesFeatureEnableDependency = depName: feature: let prefix = "${depName}/"; len = builtins.stringLength prefix; startsWithPrefix = builtins.substring 0 len feature == prefix; in feature == depName || startsWithPrefix; /* Returns the expanded features for the given inputFeatures by applying the rules in featureMap. featureMap is an attribute set which maps feature names to lists of further feature names to enable in case this feature is selected. */ expandFeatures = featureMap: inputFeatures: assert (builtins.isAttrs featureMap); assert (builtins.isList inputFeatures); let expandFeature = feature: assert (builtins.isString feature); [feature] ++ (expandFeatures featureMap (featureMap."${feature}" or [])); outFeatures = builtins.concatMap expandFeature inputFeatures; in sortedUnique outFeatures; /* The package ID of the given dependency. */ dependencyPackageId = dependency: if builtins.isString dependency then dependency else dependency.packageId; /* Returns the actual dependencies for the given dependency. */ dependencyFeatures = features: dependencyName: dependency: assert (builtins.isList features); assert (builtins.isString dependencyName); assert (builtins.isAttrs dependency || builtins.isString dependency); let defaultOrNil = if builtins.isString dependency || dependency.usesDefaultFeatures or true then ["default"] else []; explicitFeatures = if builtins.isString dependency then [] else dependency.features or []; additionalDependencyFeatures = let dependencyPrefix = dependencyName+"/"; dependencyFeatures = builtins.filter (f: lib.hasPrefix dependencyPrefix f) features; in builtins.map (lib.removePrefix dependencyPrefix) dependencyFeatures; in defaultOrNil ++ explicitFeatures ++ additionalDependencyFeatures; /* Sorts and removes duplicates from a list of strings. */ sortedUnique = features: assert (builtins.isList features); assert (builtins.all builtins.isString features); let outFeaturesSet = lib.foldl (set: feature: set // {"${feature}" = 1;} ) {} features; outFeaturesUnique = builtins.attrNames outFeaturesSet; in builtins.sort (a: b: a < b) outFeaturesUnique; # # crate2nix/default.nix (excerpt end) # }