init
This commit is contained in:
commit
17fc2e6d23
7
Cargo.lock
generated
Normal file
7
Cargo.lock
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "nixos_sample_package"
|
||||
version = "0.1.0"
|
8
Cargo.toml
Normal file
8
Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "nixos_sample_package"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
44
flake.nix
Normal file
44
flake.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
description = "NixOS Sample Package";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, stdenv } @inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
lib = pkgs.lib;
|
||||
in {
|
||||
packages.${system}.default = {
|
||||
pname = "Sample Package";
|
||||
version = "1.0";
|
||||
|
||||
# Fetch sources.
|
||||
src = fetchGit {
|
||||
url = "https://git.voronind.com/voronind/nixos_sample_package.git";
|
||||
};
|
||||
|
||||
# Bins go here.
|
||||
nativeBuildInputs = [
|
||||
cargo
|
||||
rustc
|
||||
];
|
||||
|
||||
# Libs go here.
|
||||
buildInputs = [
|
||||
# libGL
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
cargo build --release
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p ${out}/bin
|
||||
cp target/release/nixos_sample_package ${out}/bin
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
3
src/main.rs
Normal file
3
src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
1
target/.rustc_info.json
Normal file
1
target/.rustc_info.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"rustc_fingerprint":8092777913604264535,"outputs":{"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.75.0 (82e1608df 2023-12-21) (built from a source tarball)\nbinary: rustc\ncommit-hash: 82e1608dfa6e0b5569232559e3d385fea5a93112\ncommit-date: 2023-12-21\nhost: x86_64-unknown-linux-gnu\nrelease: 1.75.0\nLLVM version: 17.0.6\n","stderr":""},"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/nix/store/9b074n441rsm9izic1vhvwmrww7q089i-rustc-1.75.0\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}
|
3
target/CACHEDIR.TAG
Normal file
3
target/CACHEDIR.TAG
Normal file
|
@ -0,0 +1,3 @@
|
|||
Signature: 8a477f597d28d172789f06886806bc55
|
||||
# This file is a cache directory tag created by cargo.
|
||||
# For information about cache directory tags see https://bford.info/cachedir/
|
0
target/release/.cargo-lock
Normal file
0
target/release/.cargo-lock
Normal file
|
@ -0,0 +1 @@
|
|||
7e9a47852f67ddf7
|
|
@ -0,0 +1 @@
|
|||
{"rustc":12047664292709028906,"features":"[]","target":14251815909411570309,"profile":14094339167972473758,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/nixos_sample_package-05eb6454a74fcaeb/dep-bin-nixos_sample_package"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
BIN
target/release/deps/nixos_sample_package-05eb6454a74fcaeb
Executable file
BIN
target/release/deps/nixos_sample_package-05eb6454a74fcaeb
Executable file
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
/home/voronind/document/dev/project/nixos_sample_package/target/release/deps/nixos_sample_package-05eb6454a74fcaeb: src/main.rs
|
||||
|
||||
/home/voronind/document/dev/project/nixos_sample_package/target/release/deps/nixos_sample_package-05eb6454a74fcaeb.d: src/main.rs
|
||||
|
||||
src/main.rs:
|
BIN
target/release/nixos_sample_package
Executable file
BIN
target/release/nixos_sample_package
Executable file
Binary file not shown.
1
target/release/nixos_sample_package.d
Normal file
1
target/release/nixos_sample_package.d
Normal file
|
@ -0,0 +1 @@
|
|||
/home/voronind/document/dev/project/nixos_sample_package/target/release/nixos_sample_package: /home/voronind/document/dev/project/nixos_sample_package/src/main.rs
|
Loading…
Reference in a new issue