mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
x
This commit is contained in:
parent
a2629a1a6e
commit
0f331e73a0
2 changed files with 1 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
nativeBuildInputs = with pkgs; [ rustc ];
|
nativeBuildInputs = with pkgs; [ rustc ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
PYTHON=${pkgs.python3} rustc -Copt-level=3 -Cembed-bitcode=false $src --out-dir $out/bin
|
PYTHON=${pkgs.python3} rustc -Copt-level=3 --crate-name x $src --out-dir $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("{}", env!("PYTHON"));
|
|
||||||
match env::args().skip(1).next().as_deref() {
|
match env::args().skip(1).next().as_deref() {
|
||||||
Some("--wrapper-version") => {
|
Some("--wrapper-version") => {
|
||||||
println!("0.1.0");
|
println!("0.1.0");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue