WIP at rot8 nixpkg

This commit is contained in:
Evie Litherland-Smith 2023-04-17 14:34:19 +01:00
parent 6ae3b8a699
commit d177474ad8
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ 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" ];
};
}

View file

@ -0,0 +1,24 @@
{ 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
'';
}