Merge pull request #237942 from Janik-Haag/rwedid

rwedid: init at 0.3.2

authored by

Emily and committed by
GitHub
91a22f76 c60346f7

+49
+47
pkgs/tools/video/rwedid/default.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitea 4 + , pkg-config 5 + , xz 6 + }: 7 + 8 + rustPlatform.buildRustPackage rec { 9 + pname = "rwedid"; 10 + version = "0.3.2"; 11 + 12 + src = fetchFromGitea { 13 + domain = "codeberg.org"; 14 + owner = "ral"; 15 + repo = "rwedid"; 16 + rev = version; 17 + hash = "sha256-lbZD/QLCgkD5OQZdn6oCjry9edMcJ+q9qGF7IbY36U4="; 18 + }; 19 + 20 + cargoHash = "sha256-eY12p8pyUjSaoP4QKfVFwKQGdvFNG7GMAbFkFa8i05I="; 21 + 22 + nativeBuildInputs = [ 23 + pkg-config 24 + ]; 25 + 26 + buildInputs = [ 27 + xz 28 + ]; 29 + 30 + postInstall = '' 31 + mkdir -p $out/etc/udev/rules.d 32 + echo 'SUBSYSTEM=="i2c-dev",KERNEL=="i2c-[0-9]*", ATTRS{class}=="0x030000", TAG+="uaccess"' > $out/etc/udev/rules.d/60-rwedid.rules 33 + ''; 34 + 35 + meta = with lib; { 36 + description = "Read and write EDID data over an I2C bus"; 37 + longDescription = '' 38 + To install udev rules, you also have to add `services.udev.packages = [ pkgs.rwedid ]` into your configuration. 39 + Additionally you will also have to create the i2c group, on NixOS this can be done using `users.groups.i2c = {};`. 40 + And you will have to load i2c-dev kernel module, for that add `boot.initrd.availableKernelModules = [ i2c-dev ] to your config. 41 + ''; 42 + homepage = "https://codeberg.org/ral/rwedid"; 43 + license = licenses.mit; 44 + platforms = platforms.linux; 45 + maintainers = with maintainers; [ janik ]; 46 + }; 47 + }
+2
pkgs/top-level/all-packages.nix
··· 12755 12755 12756 12756 rwc = callPackage ../tools/system/rwc { }; 12757 12757 12758 + rwedid = callPackage ../tools/video/rwedid { }; 12759 + 12758 12760 rxp = callPackage ../tools/text/xml/rxp { }; 12759 12761 12760 12762 rzip = callPackage ../tools/compression/rzip { };