{ lib, fetchFromGitHub, rustPlatform }: rustPlatform.buildRustPackage rec { pname = "rot8"; version = "v0.1.5"; src = fetchFromGitHub { owner = "efernau"; repo = pname; rev = version; sha256 = lib.fakeSha256; }; cargoSha256 = lib.fakeSha256; buildPhase = '' cargo build --release ''; installPhase = '' mkdir $out/bin mv target/release/rot8 $out/bin ''; meta = with lib; { description = "Automatic display rotation using built-in accelerometer"; homepage = "https://github.com/BurntSushi/ripgrep"; license = licenses.unlicense; maintainers = [ "evie" ]; }; }