desktop-utils/default.nix
2025-01-13 23:38:11 +01:00

33 lines
609 B
Nix

{ pkgs ? import <nixpkgs> { } }:
pkgs.rustPlatform.buildRustPackage {
pname = "desktop-utils";
version = "1.0.0";
src = builtins.path { path = ./.; name = "desktop-utils"; };
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [
pkgs.pkg-config
];
buildInputs = [
pkgs.libxkbcommon
];
postInstall = ''
mkdir -p $out/bin
cp -r $src/eww $out/bin/eww
'';
meta = with pkgs.lib; {
description = "utils for my desktop";
homepage = " git.huwe.mooo.com/willifan/desktop-utils";
license = licenses.gpl3;
platforms = platforms.unix;
};
}