treewide: rewrite everything in Rust
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I786da853078e1013bb8f463ed9e9869c6a6a6964
This commit is contained in:
parent
56e1935ead
commit
ea96477830
43 changed files with 5993 additions and 4594 deletions
|
|
@ -1,8 +1,9 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "ncro";
|
||||
version = "1.0.0";
|
||||
|
||||
|
|
@ -13,15 +14,14 @@ buildGoModule (finalAttrs: {
|
|||
fs.toSource {
|
||||
root = s;
|
||||
fileset = fs.unions [
|
||||
(s + /cmd)
|
||||
(s + /internal)
|
||||
(s + /go.mod)
|
||||
(s + /go.sum)
|
||||
(s + /src)
|
||||
(s + /Cargo.toml)
|
||||
(s + /Cargo.lock)
|
||||
];
|
||||
};
|
||||
|
||||
vendorHash = "sha256-9OkQIj2g5mZ+IpjIKvy8Il7J4xL4PJimEsXJP10FhmU=";
|
||||
ldflags = ["-s" "-w" "-X main.version=${finalAttrs.version}"];
|
||||
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
|
||||
nativeBuildInputs = [pkg-config];
|
||||
|
||||
meta = {
|
||||
mainProgram = "ncro";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue