diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-12-29 15:47:36 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-05-15 16:54:57 +0200 |
commit | a784860836f66a782bdd263d43b5b75241954e41 (patch) | |
tree | b9b8a544f6f897257bf9edf5bcfd07c1d2ea97a7 /pkgs/by-name/ti | |
parent | 4275fc290aaecb6072abcdfc75741373ecfa0fdc (diff) |
tiny-dfr: init at 0.2.0
Diffstat (limited to 'pkgs/by-name/ti')
-rw-r--r-- | pkgs/by-name/ti/tiny-dfr/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/ti/tiny-dfr/package.nix b/pkgs/by-name/ti/tiny-dfr/package.nix new file mode 100644 index 0000000000000..ab1d5298ec8ae --- /dev/null +++ b/pkgs/by-name/ti/tiny-dfr/package.nix @@ -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; + }; +} |