25 lines
433 B
Nix
25 lines
433 B
Nix
|
{ pkgs ? <nixpkgs>, ... }:
|
||
|
|
||
|
pkgs.stdenv.mkDerivation rec {
|
||
|
pname = "rot8";
|
||
|
version = "v0.1.5";
|
||
|
|
||
|
src = pkgs.fetchFromGitHub {
|
||
|
owner = "efernau";
|
||
|
repo = pname;
|
||
|
rev = version;
|
||
|
sha256 = "0000000000000000000000000000000000000000000000000000";
|
||
|
};
|
||
|
|
||
|
buildInputs = [ pkgs.cargo ];
|
||
|
|
||
|
buildPhase = ''
|
||
|
cargo build --release
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir $out/bin
|
||
|
mv target/release/rot8 $out/bin
|
||
|
'';
|
||
|
}
|