Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
redoxer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tornax O7
redoxer
Commits
30338445
Unverified
Commit
30338445
authored
1 year ago
by
TornaxO7
Browse files
Options
Downloads
Patches
Plain Diff
adding rust toolchain and flake
parent
cc33a4dc
Branches
master
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.envrc
+1
-0
1 addition, 0 deletions
.envrc
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
flake.lock
+112
-0
112 additions, 0 deletions
flake.lock
flake.nix
+50
-0
50 additions, 0 deletions
flake.nix
rust-toolchain.toml
+2
-0
2 additions, 0 deletions
rust-toolchain.toml
with
166 additions
and
0 deletions
.envrc
0 → 100644
+
1
−
0
View file @
30338445
use flake
This diff is collapsed.
Click to expand it.
.gitignore
+
1
−
0
View file @
30338445
target
.direnv/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
flake.lock
0 → 100644
+
112
−
0
View file @
30338445
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1681202837,
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1702312524,
"narHash": "sha256-gkZJRDBUCpTPBvQk25G0B7vfbpEYM5s5OZqghkjZsnE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a9bf124c46ef298113270b1f84a164865987a91c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1681358109,
"narHash": "sha256-eKyxW4OohHQx9Urxi7TQlFBTDWII+F+x2hklDOQPB50=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "96ba1c52e54e74c3197f4d43026b3f3d92e83ff9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay",
"systems": "systems_2"
}
},
"rust-overlay": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1702779466,
"narHash": "sha256-IZeGwmm5n6bn+f4aEwMdbzFsJaa219efYZass7pdNdg=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "d74fd31da8994c7e60850561a64379324c1c77dd",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
This diff is collapsed.
Click to expand it.
flake.nix
0 → 100644
+
50
−
0
View file @
30338445
{
inputs
=
{
nixpkgs
.
url
=
"github:NixOS/nixpkgs/nixos-unstable"
;
rust-overlay
.
url
=
"github:oxalica/rust-overlay"
;
systems
.
url
=
"github:nix-systems/default-linux"
;
};
outputs
=
{
nixpkgs
,
rust-overlay
,
systems
,
...
}:
let
eachSystem
=
nixpkgs
.
lib
.
genAttrs
(
import
systems
);
mkRexoder
=
{
rustPlatform
,
lib
,
...
}:
rustPlatform
.
buildRustPackage
{
pname
=
"redoxer"
;
version
=
"0.2.38"
;
src
=
./.
;
cargoLock
.
lockFile
=
./Cargo.lock
;
meta
=
{
description
=
"The tool used to build/run Rust programs (and C/C++ programs with zero dependencies) inside of a Redox VM."
;
homepage
=
"https://gitlab.redox-os.org/redox-os/redoxer"
;
};
};
in
{
overlays
.
default
=
final
:
prev
:
{
redoxer
=
prev
.
callPackage
mkRexoder
{
};
};
devShells
=
eachSystem
(
system
:
let
pkgs
=
import
nixpkgs
{
inherit
system
;
overlays
=
[
rust-overlay
.
overlays
.
default
];
};
rust-toolchain
=
(
pkgs
.
rust-bin
.
fromRustupToolchainFile
./rust-toolchain.toml
)
.
override
{
extensions
=
[
"rust-analyzer"
];
};
in
{
default
=
pkgs
.
mkShell
{
packages
=
with
pkgs
;
[
fuse3
]
++
[
rust-toolchain
];
};
});
};
}
This diff is collapsed.
Click to expand it.
rust-toolchain.toml
0 → 100644
+
2
−
0
View file @
30338445
[toolchain]
channel
=
"stable"
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment