diff options
author | Simon Vandel Sillesen <simon.vandel@gmail.com> | 2015-07-02 03:18:56 +0200 |
---|---|---|
committer | Simon Vandel Sillesen <simon.vandel@gmail.com> | 2015-07-07 10:58:58 +0200 |
commit | e85dac137e7be8940b08744a88fcb8fe60e70000 (patch) | |
tree | 6ca481726eb43a0f15fa164e45f02e621c68630c /pkgs/misc/drivers/sundtek | |
parent | 41cf8be4123bbbec5701bf16d0f444e645eb4479 (diff) | |
download | nixlib-e85dac137e7be8940b08744a88fcb8fe60e70000.tar nixlib-e85dac137e7be8940b08744a88fcb8fe60e70000.tar.gz nixlib-e85dac137e7be8940b08744a88fcb8fe60e70000.tar.bz2 nixlib-e85dac137e7be8940b08744a88fcb8fe60e70000.tar.lz nixlib-e85dac137e7be8940b08744a88fcb8fe60e70000.tar.xz nixlib-e85dac137e7be8940b08744a88fcb8fe60e70000.tar.zst nixlib-e85dac137e7be8940b08744a88fcb8fe60e70000.zip |
sundtek init at 30-06-2015
Diffstat (limited to 'pkgs/misc/drivers/sundtek')
-rw-r--r-- | pkgs/misc/drivers/sundtek/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/misc/drivers/sundtek/default.nix b/pkgs/misc/drivers/sundtek/default.nix new file mode 100644 index 000000000000..0ad313a72331 --- /dev/null +++ b/pkgs/misc/drivers/sundtek/default.nix @@ -0,0 +1,48 @@ +{ fetchurl, stdenv }: + +with stdenv.lib; + +let + version = "30-06-2015"; + rpath = makeLibraryPath [ "$out/lib" "$out/bin" ]; + platform = with stdenv; + if isx86_64 then "64bit" + else + if isi686 then "32bit" + else abort "${system} not considered in build derivation. Might still be supported."; + +in + stdenv.mkDerivation { + src = fetchurl { + url = "http://www.sundtek.de/media/netinst/${platform}/installer.tar.gz"; + sha256 = "304d2785b5e9046c78fc092341721fdc404074105e63dd635e838559d42313c3"; + }; + name = "sundtek-${version}"; + + phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; + + sourceRoot = "."; + + installPhase = '' + cp -r opt $out + + # add and fix pkg-config file + mkdir -p $out/lib/pkgconfig + substitute $out/doc/libmedia.pc $out/lib/pkgconfig/libmedia.pc \ + --replace /opt $out + ''; + + postFixup = '' + find $out -type f -exec \ + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" {} \ + patchelf --set-rpath ${rpath} {} \; + ''; + + meta = { + description = "Sundtek MediaTV driver"; + maintainers = [ maintainers.simonvandel ]; + platforms = platforms.unix; + license = licenses.unfree; + homepage = "http://support.sundtek.com/index.php/topic,1573.0.html"; + }; + } |