Skip to content

Commit

Permalink
internal: update deps
Browse files Browse the repository at this point in the history
doc: Fix link in README
  • Loading branch information
kai-tub committed Nov 19, 2024
1 parent 2707fcf commit 078bd3f
Show file tree
Hide file tree
Showing 7 changed files with 1,319 additions and 1,502 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -972,3 +972,4 @@ If you use this work, please cite:
[euro]: https://zenodo.org/records/7711810
[ssl4eo-s12]: https://github.com/zhu-xlab/SSL4EO-S12
[major-tom]: https://github.com/ESA-PhiLab/Major-TOM
[hydro]: https://github.com/isaaccorley/hydro-foundation-model/tree/main
15 changes: 8 additions & 7 deletions deprecated_rust/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ rustPlatform.buildRustPackage {

src = nix-filter {
root = ../.;
include = ["src" "Cargo.lock" "Cargo.toml"];
include = [
"src"
"Cargo.lock"
"Cargo.toml"
];
};
# cargoLock.lockFile = ../Cargo.lock;
# https://github.com/NixOS/nixpkgs/pull/113176
Expand All @@ -31,17 +35,14 @@ rustPlatform.buildRustPackage {
gdalMinimal
];
BINDGEN_EXTRA_CLANG_ARGS = [
''
-I"${llvmPackages_latest.libclang.lib}/lib/clang/${llvmPackages_latest.libclang.version}/include"''
''-I"${llvmPackages_latest.libclang.lib}/lib/clang/${llvmPackages_latest.libclang.version}/include"''
];
LIBCLANG_PATH =
lib.makeLibraryPath
[llvmPackages_latest.libclang.lib];
LIBCLANG_PATH = lib.makeLibraryPath [ llvmPackages_latest.libclang.lib ];
meta = {
description = "A deep-learning tensor encoder tool for remote sensing datasets.";
homepage = "https://github.com/kai-tub/rico-hdl";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [kai-tub];
maintainers = with lib.maintainers; [ kai-tub ];
mainProgram = "rico-hdl";
};
}
35 changes: 21 additions & 14 deletions deprecated_rust/nix/overlays.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
{
lib,
inputs,
}: let
}:
let
cargo_toml = builtins.fromTOML (builtins.readFile ../Cargo.toml);
mkDate = longDate: (lib.concatStringsSep "-" [
(builtins.substring 0 4 longDate)
(builtins.substring 4 2 longDate)
(builtins.substring 6 2 longDate)
]);
in {
default = final: prev: let
date = mkDate (inputs.self.lastModifiedDate or "19700101");
in {
rico-hdl = final.callPackage ./default.nix {
version = "${cargo_toml.package.version}+date=${date}_${inputs.self.shortRev or "dirty"}";
nix-filter = inputs.nix-filter.lib;
mkDate =
longDate:
(lib.concatStringsSep "-" [
(builtins.substring 0 4 longDate)
(builtins.substring 4 2 longDate)
(builtins.substring 6 2 longDate)
]);
in
{
default =
final: prev:
let
date = mkDate (inputs.self.lastModifiedDate or "19700101");
in
{
rico-hdl = final.callPackage ./default.nix {
version = "${cargo_toml.package.version}+date=${date}_${inputs.self.shortRev or "dirty"}";
nix-filter = inputs.nix-filter.lib;
};
};
};
}
Loading

0 comments on commit 078bd3f

Please sign in to comment.