generate Cargo.nix with cargo2nix
This commit is contained in:
parent
dcb534e3ae
commit
0a7e29b7d7
4
crate-hashes.json
Normal file
4
crate-hashes.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"amqp 0.1.0 (git+https://github.com/grahamc/rust-amqp.git#f9aec2f40aef69a459f26003ce47048f8e2a08d1)": "09k6fl7l0rcwilnckdfv3smiv1ilrwi1jxmrrkjwbrj64lky3jdy",
|
||||
"hubcaps 0.3.16 (git+https://github.com/grahamc/hubcaps.git#5e656ba35ab4ee74aa72b3b5c3a62e1bf351ff6a)": "1p7rn8y71fjwfag65437gz7a56pysz9n69smaknvblyxpjdzmh4d"
|
||||
}
|
197
crates-io.list
197
crates-io.list
|
@ -1,197 +0,0 @@
|
|||
aho-corasick-0.5.3
|
||||
aho-corasick-0.7.10
|
||||
amq-proto-0.1.0
|
||||
amq-protocol-6.0.0-rc3
|
||||
amq-protocol-codegen-6.0.0-rc3
|
||||
amq-protocol-tcp-6.0.0-rc3
|
||||
amq-protocol-types-6.0.0-rc3
|
||||
amq-protocol-uri-6.0.0-rc3
|
||||
ansi_term-0.11.0
|
||||
antidote-1.0.0
|
||||
arrayvec-0.5.1
|
||||
async-std-1.5.0
|
||||
async-task-1.3.1
|
||||
async-task-3.0.0
|
||||
autocfg-0.1.1
|
||||
autocfg-1.0.0
|
||||
backtrace-0.3.13
|
||||
backtrace-sys-0.1.28
|
||||
base64-0.9.3
|
||||
base64-0.10.0
|
||||
bit-vec-0.4.4
|
||||
bitflags-0.9.1
|
||||
bitflags-1.2.1
|
||||
block-buffer-0.7.3
|
||||
block-padding-0.1.5
|
||||
byte-tools-0.3.1
|
||||
byteorder-0.5.3
|
||||
byteorder-1.2.7
|
||||
cc-1.0.28
|
||||
cfg-if-0.1.10
|
||||
chrono-0.4.6
|
||||
cloudabi-0.0.3
|
||||
cookie-factory-0.3.1
|
||||
core-foundation-0.2.3
|
||||
core-foundation-0.7.0
|
||||
core-foundation-sys-0.2.3
|
||||
core-foundation-sys-0.7.0
|
||||
crossbeam-channel-0.4.2
|
||||
crossbeam-deque-0.7.3
|
||||
crossbeam-epoch-0.8.2
|
||||
crossbeam-utils-0.7.2
|
||||
digest-0.8.1
|
||||
doc-comment-0.3.3
|
||||
either-1.5.0
|
||||
enum_primitive-0.1.1
|
||||
env_logger-0.3.5
|
||||
error-chain-0.10.0
|
||||
fake-simd-0.1.2
|
||||
foreign-types-0.3.2
|
||||
foreign-types-shared-0.1.1
|
||||
frank_jwt-3.1.0
|
||||
fs2-0.4.3
|
||||
fuchsia-zircon-0.3.3
|
||||
fuchsia-zircon-sys-0.3.3
|
||||
futures-core-0.3.4
|
||||
futures-io-0.3.4
|
||||
futures-timer-2.0.2
|
||||
generic-array-0.12.3
|
||||
getrandom-0.1.14
|
||||
handlebars-3.0.1
|
||||
hermit-abi-0.1.12
|
||||
httparse-1.3.3
|
||||
hyper-0.10.15
|
||||
hyper-native-tls-0.2.4
|
||||
idna-0.1.5
|
||||
idna-0.2.0
|
||||
iovec-0.1.4
|
||||
itoa-0.4.3
|
||||
kernel32-sys-0.2.2
|
||||
kv-log-macro-1.0.4
|
||||
language-tags-0.2.2
|
||||
lapin-1.0.0-beta4
|
||||
lazy_static-0.2.11
|
||||
lazy_static-1.4.0
|
||||
lexical-core-0.7.4
|
||||
libc-0.2.69
|
||||
linked-hash-map-0.4.2
|
||||
lock_api-0.3.4
|
||||
log-0.3.8
|
||||
log-0.4.8
|
||||
lru-cache-0.1.1
|
||||
maplit-1.0.2
|
||||
matchers-0.0.1
|
||||
matches-0.1.8
|
||||
maybe-uninit-2.0.0
|
||||
md5-0.3.8
|
||||
memchr-0.1.11
|
||||
memchr-2.3.3
|
||||
memoffset-0.5.4
|
||||
mime-0.2.6
|
||||
mio-0.6.21
|
||||
mio-0.7.0
|
||||
mio-uds-0.6.7
|
||||
miow-0.2.1
|
||||
miow-0.3.3
|
||||
native-tls-0.1.5
|
||||
native-tls-0.2.4
|
||||
net2-0.2.33
|
||||
nom-4.1.1
|
||||
nom-6.0.0-alpha1
|
||||
ntapi-0.3.3
|
||||
num-integer-0.1.39
|
||||
num-traits-0.1.43
|
||||
num-traits-0.2.6
|
||||
num_cpus-1.13.0
|
||||
once_cell-1.3.1
|
||||
opaque-debug-0.2.3
|
||||
openssl-0.9.24
|
||||
openssl-0.10.29
|
||||
openssl-probe-0.1.2
|
||||
openssl-sys-0.9.55
|
||||
parking_lot-0.10.2
|
||||
parking_lot_core-0.7.2
|
||||
percent-encoding-1.0.1
|
||||
percent-encoding-2.1.0
|
||||
pest-2.1.3
|
||||
pest_derive-2.1.0
|
||||
pest_generator-2.1.3
|
||||
pest_meta-2.1.3
|
||||
pin-project-lite-0.1.4
|
||||
pin-utils-0.1.0
|
||||
pinky-swear-4.0.0
|
||||
pkg-config-0.3.14
|
||||
ppv-lite86-0.2.6
|
||||
proc-macro2-1.0.10
|
||||
quick-error-1.2.3
|
||||
quote-1.0.3
|
||||
rand-0.3.22
|
||||
rand-0.4.3
|
||||
rand-0.7.3
|
||||
rand_chacha-0.2.2
|
||||
rand_core-0.5.1
|
||||
rand_hc-0.2.0
|
||||
redox_syscall-0.1.50
|
||||
regex-0.1.80
|
||||
regex-1.3.7
|
||||
regex-automata-0.1.9
|
||||
regex-syntax-0.3.9
|
||||
regex-syntax-0.6.17
|
||||
remove_dir_all-0.5.1
|
||||
rustc-demangle-0.1.13
|
||||
ryu-1.0.4
|
||||
safemem-0.3.0
|
||||
schannel-0.1.18
|
||||
scopeguard-1.1.0
|
||||
security-framework-0.1.16
|
||||
security-framework-0.4.3
|
||||
security-framework-sys-0.1.16
|
||||
security-framework-sys-0.4.3
|
||||
separator-0.4.1
|
||||
serde-1.0.106
|
||||
serde_derive-1.0.106
|
||||
serde_json-1.0.52
|
||||
sha-1-0.8.2
|
||||
sharded-slab-0.0.9
|
||||
slab-0.4.2
|
||||
smallvec-1.4.0
|
||||
socket2-0.3.12
|
||||
static_assertions-1.1.0
|
||||
syn-1.0.18
|
||||
sys-info-0.5.6
|
||||
tcp-stream-0.15.4
|
||||
tempdir-0.3.7
|
||||
tempfile-2.2.0
|
||||
tempfile-3.1.0
|
||||
thread-id-2.0.0
|
||||
thread_local-0.2.7
|
||||
thread_local-1.0.1
|
||||
time-0.1.41
|
||||
tracing-0.1.13
|
||||
tracing-attributes-0.1.7
|
||||
tracing-core-0.1.10
|
||||
tracing-log-0.1.1
|
||||
tracing-serde-0.1.1
|
||||
tracing-subscriber-0.2.5
|
||||
traitobject-0.1.0
|
||||
typeable-0.1.2
|
||||
typenum-1.12.0
|
||||
ucd-trie-0.1.3
|
||||
unicase-1.4.2
|
||||
unicode-bidi-0.3.4
|
||||
unicode-normalization-0.1.7
|
||||
unicode-xid-0.2.0
|
||||
url-1.7.2
|
||||
url-2.1.1
|
||||
utf8-ranges-0.1.3
|
||||
uuid-0.4.0
|
||||
vcpkg-0.2.8
|
||||
version_check-0.1.5
|
||||
version_check-0.9.1
|
||||
wasi-0.9.0+wasi-snapshot-preview1
|
||||
winapi-0.2.8
|
||||
winapi-0.3.8
|
||||
winapi-build-0.1.1
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
ws2_32-sys-0.2.1
|
6523
crates-io.nix
6523
crates-io.nix
File diff suppressed because it is too large
Load diff
32
default.nix
32
default.nix
|
@ -1,20 +1,18 @@
|
|||
{ pkgs ? import ./nix {
|
||||
config.permittedInsecurePackages = [
|
||||
"openssl-1.0.2u"
|
||||
];
|
||||
overlays = [ (import ./nix/overlay.nix) ];
|
||||
}
|
||||
config.permittedInsecurePackages = [
|
||||
"openssl-1.0.2u"
|
||||
];
|
||||
overlays = [ (import ./nix/overlay.nix) ];
|
||||
}
|
||||
, ofborgCrates ? import ./Cargo.nix {
|
||||
inherit pkgs;
|
||||
release = pkgs.stdenv.isDarwin;
|
||||
}
|
||||
}:
|
||||
|
||||
with ofborgCrates.workspaceMembers;
|
||||
|
||||
let
|
||||
ofborgCrates = pkgs.callPackage ./Cargo.nix {
|
||||
cratesIO = pkgs.callPackage ./crates-io.nix {};
|
||||
};
|
||||
|
||||
drv = ofborgCrates.ofborg {};
|
||||
|
||||
src = stripDeps (drv.override { release = pkgs.stdenv.isDarwin; });
|
||||
|
||||
stripDeps = pkg: pkgs.runCommand "${pkg.name}-deps-stripped" {}
|
||||
''
|
||||
cp -r ${pkg} $out
|
||||
|
@ -23,10 +21,14 @@ let
|
|||
find $out/bin -name '*.d' -delete
|
||||
chmod -R a-w $out
|
||||
'';
|
||||
|
||||
src = stripDeps ofborg.build;
|
||||
in
|
||||
|
||||
{
|
||||
ofborg.simple-build = ofborgCrates.ofborg_simple_build {};
|
||||
inherit ofborgCrates;
|
||||
|
||||
ofborg.simple-build = ofborg-simple-build.build;
|
||||
|
||||
ofborg.rs = pkgs.runCommand "ofborg-rs-symlink-compat" { inherit src; } ''
|
||||
mkdir -p $out/bin
|
||||
|
@ -49,7 +51,7 @@ in
|
|||
|
||||
# Verify that the outpath contains the version number matching the
|
||||
# Cargo.toml
|
||||
if ! grep -q 'version = "${drv.crateVersion}"' ${./ofborg/Cargo.toml}; then
|
||||
if ! grep -q 'version = "${ofborg.build.crateVersion}"' ${./ofborg/Cargo.toml}; then
|
||||
cat <<EOF
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue