Created
June 6, 2023 05:15
-
-
Save sleexyz/7285f1bef06a4c8eff31b2157610df0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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