mirror of
https://github.com/NotAShelf/microfetch.git
synced 2026-06-17 09:26:53 +00:00
Some checks are pending
Rust / Test on aarch64-unknown-linux-gnu (push) Waiting to run
Rust / Test on armv7-unknown-linux-gnueabihf (push) Waiting to run
Rust / Test on i686-unknown-linux-gnu (push) Waiting to run
Rust / Test on loongarch64-unknown-linux-gnu (push) Waiting to run
Rust / Test on powerpc-unknown-linux-gnu (push) Waiting to run
Rust / Test on powerpc64-unknown-linux-gnu (push) Waiting to run
Rust / Test on powerpc64le-unknown-linux-gnu (push) Waiting to run
Rust / Test on riscv64gc-unknown-linux-gnu (push) Waiting to run
Rust / Test on s390x-unknown-linux-gnu (push) Waiting to run
Rust / Test on sparc64-unknown-linux-gnu (push) Waiting to run
Rust / Test on mips-unknown-linux-gnu (push) Waiting to run
Rust / Test on mips64-unknown-linux-gnuabi64 (push) Waiting to run
Rust / Test on riscv32gc-unknown-linux-gnu (push) Waiting to run
Rust / Test on x86_64-unknown-linux-gnu (push) Waiting to run
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I8dc2910c36075bef0e1c00459d83e5ea6a6a6964
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
llvm,
|
|
}: let
|
|
pname = "microfetch";
|
|
toml = (lib.importTOML ../Cargo.toml).workspace.package;
|
|
inherit (toml) version;
|
|
in
|
|
rustPlatform.buildRustPackage.override {inherit (llvm) stdenv;} (finalAttrs: {
|
|
__structuredAttrs = true;
|
|
|
|
inherit pname version;
|
|
src = let
|
|
fs = lib.fileset;
|
|
s = ../.;
|
|
in
|
|
fs.toSource {
|
|
root = s;
|
|
fileset = fs.unions [
|
|
(s + /.cargo)
|
|
(s + /crates)
|
|
(s + /microfetch)
|
|
(s + /scripts/ld-wrapper)
|
|
(s + /Cargo.lock)
|
|
(s + /Cargo.toml)
|
|
];
|
|
};
|
|
|
|
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
|
|
enableParallelBuilding = true;
|
|
buildNoDefaultFeatures = true;
|
|
doCheck = false;
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
description = "Microscopic fetch script in Rust, for NixOS systems";
|
|
homepage = "https://github.com/NotAShelf/microfetch";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [lib.maintainers.NotAShelf];
|
|
mainProgram = "microfetch";
|
|
};
|
|
})
|