nixos/home/desktop/pkgs/rot8/default.nix

25 lines
433 B
Nix
Raw Normal View History

2023-04-17 14:34:19 +01:00
{ 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
'';
}