Skip to content

Instantly share code, notes, and snippets.

@sleexyz
Created June 6, 2023 05:15
Show Gist options
  • Save sleexyz/7285f1bef06a4c8eff31b2157610df0d to your computer and use it in GitHub Desktop.
Save sleexyz/7285f1bef06a4c8eff31b2157610df0d to your computer and use it in GitHub Desktop.
{ pkgs }:
pkgs.stdenv.mkDerivation rec {
pname = "copy";
version = "1.3";
src = ./.;
buildInputs = [ pkgs.rustc ];
buildPhase = ''
rustc copy.rs
'';
installPhase = ''
mkdir -p $out/bin
cp copy $out/bin
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment