Skip to content

Commit

Permalink
tiny-dfr: init at 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssais committed May 3, 2024
1 parent 9144937 commit a165e27
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/by-name/ti/tiny-dfr/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib, rustPlatform, fetchFromGitHub, pkg-config
, cairo, gdk-pixbuf, glib, libinput, libxml2, pango, udev
}:

rustPlatform.buildRustPackage rec {
pname = "tiny-dfr";
version = "0.2.0";

src = fetchFromGitHub {
owner = "WhatAmISupposedToPutHere";
repo = "tiny-dfr";
rev = "v${version}";
hash = "sha256-oawKYrfXAQ5RFMdUCG7F12wHcnFif++44s2KsX9ns6U=";
};

cargoHash = "sha256-QOkztErJLFXPxCb8MvaXi7jGXeI5A0q8LwZtYddzUZE=";

nativeBuildInputs = [ pkg-config ];
buildInputs = [ cairo gdk-pixbuf glib libinput libxml2 pango udev ];

postConfigure = ''
substituteInPlace etc/systemd/system/tiny-dfr.service \
--replace-fail /usr/bin/ $out/bin/
substituteInPlace src/*.rs --replace-quiet /usr/share $out/share
'';

postInstall = ''
cp -R etc $out/lib
cp -R share $out
'';

meta = with lib; {
homepage = "https://github.com/WhatAmISupposedToPutHere/tiny-dfr";
description = "The most basic dynamic function row daemon possible";
license = [ licenses.asl20 licenses.mit ];
mainProgram = "tiny-dfr";
maintainers = [ maintainers.qyliss ];
platforms = platforms.linux;
};
}

0 comments on commit a165e27

Please sign in to comment.