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

32 lines
630 B
Nix
Raw Normal View History

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