lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

udevil: refactor and fix #35650

Artturin ec5c0817 5ef8322d

+24 -9
+24 -9
pkgs/applications/misc/udevil/default.nix
··· 1 - { lib, stdenv, fetchurl, intltool, glib, pkg-config, udev, util-linux, acl }: 2 - stdenv.mkDerivation { 3 - name = "udevil-0.4.4"; 4 - src = fetchurl { 5 - url = "https://github.com/IgnorantGuru/udevil/archive/0.4.4.tar.gz"; 6 - sha256 = "0z1bhaayambrcn7bgnrqk445k50ifabmw8q4i9qj49nnbcvxhbxd"; 1 + { lib, stdenv, fetchFromGitHub, intltool, glib, pkg-config, udev, util-linux, acl }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "udevil"; 5 + version = "0.4.4"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "IgnorantGuru"; 9 + repo = "udevil"; 10 + rev = version; 11 + sha256 = "0nd44r8rbxifx4x4m24z5aji1c6k1fhw8cmf5s43wd5qys0bcdad"; 7 12 }; 13 + 8 14 nativeBuildInputs = [ pkg-config ]; 15 + 9 16 buildInputs = [ intltool glib udev ]; 17 + 10 18 configurePhase = '' 11 19 substituteInPlace src/Makefile.in --replace "-o root -g root" "" 12 20 # do not set setuid bit in nix store ··· 19 27 --with-setfacl-prog=${acl.bin}/bin/setfacl \ 20 28 --sysconfdir=$prefix/etc 21 29 ''; 30 + 31 + postInstall = '' 32 + substituteInPlace $out/lib/systemd/system/devmon@.service \ 33 + --replace /usr/bin/devmon "$out/bin/devmon" 34 + ''; 35 + 22 36 patches = [ ./device-info-sys-stat.patch ]; 23 - meta = { 37 + 38 + meta = with lib; { 24 39 description = "A command line Linux program which mounts and unmounts removable devices without a password, shows device info, and monitors device changes"; 25 40 homepage = "https://ignorantguru.github.io/udevil/"; 26 - platforms = lib.platforms.linux; 27 - license = lib.licenses.gpl3; 41 + platforms = platforms.linux; 42 + license = licenses.gpl3Plus; 28 43 }; 29 44 }