bikeshed to make x more small

This commit is contained in:
nora 2024-02-23 21:44:57 +01:00
parent 0260ef1fb5
commit 274ca062bf
7 changed files with 67 additions and 166 deletions

View file

@ -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";