WIP at rot8 nixpkg
This commit is contained in:
parent
6ae3b8a699
commit
d177474ad8
31
nixos/home-manager/env/pkgs/rot8/backup.nix
vendored
Normal file
31
nixos/home-manager/env/pkgs/rot8/backup.nix
vendored
Normal 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" ];
|
||||
};
|
||||
}
|
24
nixos/home-manager/env/pkgs/rot8/default.nix
vendored
Normal file
24
nixos/home-manager/env/pkgs/rot8/default.nix
vendored
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue