mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-15 20:25:06 +01:00
bikeshed to make x more small
This commit is contained in:
parent
0260ef1fb5
commit
274ca062bf
7 changed files with 67 additions and 166 deletions
|
|
@ -1,10 +1,14 @@
|
|||
pkgs: pkgs.rustPlatform.buildRustPackage {
|
||||
pname = "x";
|
||||
version = "1.0.1";
|
||||
{ pkgs ? import <nixpkgs> { } }: pkgs.stdenv.mkDerivation {
|
||||
name = "x";
|
||||
|
||||
src = ./.;
|
||||
src = ./x.rs;
|
||||
dontUnpack = true;
|
||||
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
nativeBuildInputs = with pkgs; [ rustc ];
|
||||
|
||||
buildPhase = ''
|
||||
rustc -Copt-level=3 -Cembed-bitcode=false $src --out-dir $out/bin
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Helper for rust-lang/rust x.py";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue