zaphyra's git: nixfiles

zaphyra's nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  ...
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "oniri";
  version = "1.2.0";
  rev = "v${finalAttrs.version}";
  srcHash = "sha256-54OA+N2qCbtfbYAEh18D1rUjxvmarZHPaH33maQa4uc=";
  cargoHash = "sha256-k1hnveoLOld7ec/FRmdUt8Ayoz45FO1KBkKVlA8E/ss=";

  src = fetchFromGitHub {
    owner = "Antiz96";
    repo = finalAttrs.pname;
    hash = finalAttrs.srcHash;
    inherit (finalAttrs) rev;
  };

  nativeBuildInputs = [
    pkg-config
  ];

  meta = {
    description = "A tool that automatically maximizes the only window of a niri workspace";
    homepage = "https://github.com/Antiz96/oniri";
    license = lib.licenses.gpl3;
    mainProgram = "oniri";
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ zaphyra ];
  };
})