mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
63 lines
1.4 KiB
Nix
63 lines
1.4 KiB
Nix
{
|
|
fetchurl,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
let
|
|
version = "2016-01-26";
|
|
rpath = lib.makeLibraryPath [
|
|
"$out/lib"
|
|
"$out/bin"
|
|
];
|
|
platform =
|
|
with stdenv;
|
|
if isx86_64 then
|
|
"64bit"
|
|
else if isi686 then
|
|
"32bit"
|
|
else
|
|
throw "${system} not considered in build derivation. Might still be supported.";
|
|
sha256 =
|
|
with stdenv;
|
|
if isx86_64 then
|
|
"1jfsng5n3phw5rqpkid9m5j7m7zgj5bifh7swvba7f97y6imdaax"
|
|
else
|
|
"15y6r5w306pcq4g1rn9f7vf70f3a7qhq237ngaf0wxh2nr0aamxp";
|
|
in
|
|
stdenv.mkDerivation {
|
|
src = fetchurl {
|
|
url = "http://www.sundtek.de/media/netinst/${platform}/installer.tar.gz";
|
|
sha256 = sha256;
|
|
};
|
|
pname = "sundtek";
|
|
inherit version;
|
|
|
|
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} {} \;
|
|
'';
|
|
|
|
preferLocalBuild = true;
|
|
|
|
meta = with lib; {
|
|
description = "Sundtek MediaTV driver";
|
|
maintainers = [ maintainers.simonvandel ];
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
platforms = platforms.unix;
|
|
license = licenses.unfree;
|
|
homepage = "https://support.sundtek.com/index.php/topic,1573.0.html";
|
|
};
|
|
}
|