nur-packages

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

default.nix (641B)


      1 {
      2   lib,
      3   rustPlatform,
      4   fetchFromGitLab,
      5 }:
      6 
      7 rustPlatform.buildRustPackage (finalAttrs: {
      8   pname = "modbus-tools";
      9   version = "0.2";
     10 
     11   src = fetchFromGitLab {
     12     owner = "alexs-sh";
     13     repo = "modbus-tools";
     14     tag = "v${finalAttrs.version}";
     15     hash = "sha256-PA8EuZa2jKkd/pn6UGGJ6f7jac1bN2sS2fX3qmYVduQ=";
     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 })