nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

package.nix (679B)


      1 {
      2   lib,
      3   rustPlatform,
      4   fetchFromGitLab,
      5 }:
      6 
      7 rustPlatform.buildRustPackage (finalAttrs: {
      8   pname = "modbus-tools";
      9   version = "0.2-unstable-2025-02-17";
     10 
     11   src = fetchFromGitLab {
     12     owner = "alexs-sh";
     13     repo = "modbus-tools";
     14     rev = "79b3bcf54b882d8bfec29f5d231c90e7b0f67119";
     15     hash = "sha256-XBIdWYeuuqxwtPuhnZ7BstRlELIf9YdN2Sy9TEywDR0=";
     16   };
     17 
     18   cargoLock.lockFile = ./Cargo.lock;
     19 
     20   postPatch = ''
     21     ln -s ${./Cargo.lock} Cargo.lock
     22   '';
     23 
     24   meta = {
     25     description = "Tool(s) for working with Modbus protocol";
     26     homepage = "https://github.com/alexs-sh/modbus-tools";
     27     license = lib.licenses.mit;
     28     maintainers = [ lib.maintainers.sikmir ];
     29   };
     30 })