pkgs/conduit: remove dependency on fenix and crane
This commit is contained in:
parent
ff4457c267
commit
e809826dc8
4 changed files with 16 additions and 80 deletions
51
flake.lock
generated
51
flake.lock
generated
|
@ -45,9 +45,7 @@
|
||||||
},
|
},
|
||||||
"attic": {
|
"attic": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"crane": [
|
"crane": "crane",
|
||||||
"crane"
|
|
||||||
],
|
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"lix": [
|
"lix": [
|
||||||
|
@ -111,11 +109,11 @@
|
||||||
},
|
},
|
||||||
"crane": {
|
"crane": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742394900,
|
"lastModified": 1745454774,
|
||||||
"narHash": "sha256-vVOAp9ahvnU+fQoKd4SEXB2JG2wbENkpqcwlkIXgUC0=",
|
"narHash": "sha256-oLvmxOnsEKGtwczxp/CwhrfmQUG2ym24OMWowcoRhH8=",
|
||||||
"owner": "ipetkov",
|
"owner": "ipetkov",
|
||||||
"repo": "crane",
|
"repo": "crane",
|
||||||
"rev": "70947c1908108c0c551ddfd73d4f750ff2ea67cd",
|
"rev": "efd36682371678e2b6da3f108fdb5c613b3ec598",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -165,27 +163,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fenix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"rust-analyzer-src": "rust-analyzer-src"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1742452566,
|
|
||||||
"narHash": "sha256-sVuLDQ2UIWfXUBbctzrZrXM2X05YjX08K7XHMztt36E=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"rev": "7d9ba794daf5e8cc7ee728859bc688d8e26d5f06",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"firefox-darwin": {
|
"firefox-darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -609,10 +586,8 @@
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"attic": "attic",
|
"attic": "attic",
|
||||||
"conduit-src": "conduit-src",
|
"conduit-src": "conduit-src",
|
||||||
"crane": "crane",
|
|
||||||
"darwin": "darwin",
|
"darwin": "darwin",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"fenix": "fenix",
|
|
||||||
"firefox-darwin": "firefox-darwin",
|
"firefox-darwin": "firefox-darwin",
|
||||||
"helix": "helix",
|
"helix": "helix",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
@ -629,23 +604,6 @@
|
||||||
"zjstatus": "zjstatus"
|
"zjstatus": "zjstatus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1742296961,
|
|
||||||
"narHash": "sha256-gCpvEQOrugHWLimD1wTFOJHagnSEP6VYBDspq96Idu0=",
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"rev": "15d87419f1a123d8f888d608129c3ce3ff8f13d4",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"ref": "nightly",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rust-overlay": {
|
"rust-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -818,6 +776,7 @@
|
||||||
"zjstatus": {
|
"zjstatus": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"crane": [
|
"crane": [
|
||||||
|
"attic",
|
||||||
"crane"
|
"crane"
|
||||||
],
|
],
|
||||||
"flake-utils": "flake-utils_3",
|
"flake-utils": "flake-utils_3",
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -47,13 +47,6 @@
|
||||||
url = "gitlab:famedly/conduit?ref=next";
|
url = "gitlab:famedly/conduit?ref=next";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
fenix = {
|
|
||||||
url = "github:nix-community/fenix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
crane = {
|
|
||||||
url = "github:ipetkov/crane";
|
|
||||||
};
|
|
||||||
firefox-darwin = {
|
firefox-darwin = {
|
||||||
url = "github:bandithedoge/nixpkgs-firefox-darwin";
|
url = "github:bandithedoge/nixpkgs-firefox-darwin";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -64,7 +57,6 @@
|
||||||
attic = {
|
attic = {
|
||||||
url = "git+https://git.lix.systems/nrabulinski/attic.git";
|
url = "git+https://git.lix.systems/nrabulinski/attic.git";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.crane.follows = "crane";
|
|
||||||
inputs.lix.follows = "lix";
|
inputs.lix.follows = "lix";
|
||||||
inputs.lix-module.follows = "lix-module";
|
inputs.lix-module.follows = "lix-module";
|
||||||
};
|
};
|
||||||
|
@ -75,7 +67,7 @@
|
||||||
zjstatus = {
|
zjstatus = {
|
||||||
url = "github:dj95/zjstatus";
|
url = "github:dj95/zjstatus";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.crane.follows = "crane";
|
inputs.crane.follows = "attic/crane";
|
||||||
};
|
};
|
||||||
lix = {
|
lix = {
|
||||||
url = "git+https://git.lix.systems/lix-project/lix.git";
|
url = "git+https://git.lix.systems/lix-project/lix.git";
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
pkgs,
|
|
||||||
system,
|
|
||||||
fenix,
|
|
||||||
crane,
|
|
||||||
src,
|
src,
|
||||||
libiconv,
|
libiconv,
|
||||||
rocksdb,
|
rocksdb,
|
||||||
|
@ -12,27 +8,18 @@
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
rust =
|
manifest = (builtins.fromTOML (builtins.readFile "${src}/Cargo.toml")).package;
|
||||||
with fenix.${system};
|
|
||||||
combine [
|
|
||||||
stable.cargo
|
|
||||||
stable.rustc
|
|
||||||
];
|
|
||||||
crane' = (crane pkgs).overrideToolchain rust;
|
|
||||||
rocksdb' = rocksdb.overrideAttrs (
|
|
||||||
final: prev: {
|
|
||||||
version = "9.1.1";
|
|
||||||
src = prev.src.override {
|
|
||||||
rev = "v${final.version}";
|
|
||||||
hash = "sha256-/Xf0bzNJPclH9IP80QNaABfhj4IAR5LycYET18VFCXc=";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
);
|
|
||||||
in
|
in
|
||||||
crane'.buildPackage {
|
rustPlatform.buildRustPackage {
|
||||||
|
pname = manifest.name;
|
||||||
|
inherit (manifest) version;
|
||||||
|
|
||||||
inherit src;
|
inherit src;
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
|
useFetchCargoVendor = true;
|
||||||
|
cargoHash = "sha256-wESDxtKRMm/jyCr4kc20UuHGcE2s+OCMjfL+l1XihnA=";
|
||||||
|
|
||||||
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
|
@ -42,8 +29,8 @@ crane'.buildPackage {
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use system RocksDB
|
# Use system RocksDB
|
||||||
ROCKSDB_INCLUDE_DIR = "${rocksdb'}/include";
|
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
|
||||||
ROCKSDB_LIB_DIR = "${rocksdb'}/lib";
|
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
|
||||||
NIX_OUTPATH_USED_AS_RANDOM_SEED = "randomseed";
|
NIX_OUTPATH_USED_AS_RANDOM_SEED = "randomseed";
|
||||||
CONDUIT_VERSION_EXTRA = src.shortRev;
|
CONDUIT_VERSION_EXTRA = src.shortRev;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,6 @@ in
|
||||||
package = import ./conduit;
|
package = import ./conduit;
|
||||||
settings.args = {
|
settings.args = {
|
||||||
src = config.inputs.conduit-src.result;
|
src = config.inputs.conduit-src.result;
|
||||||
crane = config.inputs.crane.result.mkLib;
|
|
||||||
fenix = config.inputs.fenix.result.packages;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue