First working* version after rewrite

This commit is contained in:
willifan 2025-01-12 23:30:31 +01:00
parent 18271ac1d3
commit 5df9833edd
22 changed files with 2768 additions and 396 deletions

View file

@ -1,32 +1,29 @@
{ lib
, stdenv
, cmake
, nlohmann_json
}:
{ pkgs ? import <nixpkgs> { } }:
stdenv.mkDerivation {
pkgs.rustPlatform.buildRustPackage {
pname = "desktop-utils";
version = "1.0.0";
src = builtins.path { path = ./.; name = "desktop-utils"; };
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [
cmake
];
buildInputs = [
nlohmann_json
];
cmakeFlags = [
pkgs.pkg-config
];
installPhase = ''
mkdir -p $out/bin
cp clients $out/bin/clients
'';
buildInputs = [
pkgs.libxkbcommon
];
meta = with lib; {
# installPhase = ''
# mkdir -p $out/bin
# cp clients $out/bin/clients
#'';
meta = with pkgs.lib; {
description = "utils for my desktop";
homepage = " git.huwe.mooo.com/willifan/desktop-utils";
license = licenses.gpl3;