diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-12-28 18:50:54 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-12-29 00:11:40 +0300 |
commit | a36a2412ee99d0e7714143e174b1f994635cc1d9 (patch) | |
tree | 7e80ce7a76a3f12f9d147c63d07b256e10046aa8 /pkgs/os-specific/linux/libudev0-shim | |
parent | 2d82189509f7ac85916053d5105cc5c3d0e3d122 (diff) |
libudev0-shim: init at 1
Diffstat (limited to 'pkgs/os-specific/linux/libudev0-shim')
-rw-r--r-- | pkgs/os-specific/linux/libudev0-shim/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/libudev0-shim/default.nix b/pkgs/os-specific/linux/libudev0-shim/default.nix new file mode 100644 index 0000000000000..203d1defa2881 --- /dev/null +++ b/pkgs/os-specific/linux/libudev0-shim/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchFromGitHub, udev }: + +stdenv.mkDerivation rec { + name = "libudev0-shim-${version}"; + version = "1"; + + src = fetchFromGitHub { + owner = "archlinux"; + repo = "libudev0-shim"; + rev = "v${version}"; + sha256 = "1460qm6rp1cqnns39lj24z7191m8sbpvbjabqbzb55dkdd2kw50z"; + }; + + buildInputs = [ udev ]; + + installPhase = '' + name="$(echo libudev.so.*)" + install -Dm755 "$name" "$out/lib/$name" + ln -s "$name" "$out/lib/libudev.so.0" + ''; + + meta = with stdenv.lib; { + description = "Shim to preserve libudev.so.0 compatibility"; + homepage = "https://github.com/archlinux/libudev0-shim"; + platforms = platforms.linux; + license = licenses.lgpl21; + maintainers = with maintainers; [ abbradar ]; + }; +} |