Merge pull request #186180 from AndersonTorres/remove-tarballs-nixos

Remove references to tarballs.nixos.org
This commit is contained in:
Anderson Torres 2022-08-12 02:56:08 -03:00 committed by GitHub
commit 74a50898fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 47 deletions

View file

@ -1,17 +1,12 @@
{ lib, fetchurl } : { lib, fetchurl } :
let let
major = "3"; version = "3.00";
minor = "00";
version = "${major}.${minor}";
in fetchurl rec { in fetchurl rec {
name = "fixedsys-excelsior-${version}"; name = "fixedsys-excelsior-${version}";
urls = [ url = "https://raw.githubusercontent.com/chrissimpkins/codeface/master/fonts/fixed-sys-excelsior/FSEX300.ttf";
"http://www.fixedsysexcelsior.com/fonts/FSEX300.ttf"
"https://raw.githubusercontent.com/chrissimpkins/codeface/master/fonts/fixed-sys-excelsior/FSEX300.ttf"
"http://tarballs.nixos.org/sha256/6ee0f3573bc5e33e93b616ef6282f49bc0e227a31aa753ac76ed2e3f3d02056d"
];
downloadToTemp = true; downloadToTemp = true;
recursiveHash = true; recursiveHash = true;
postFetch = '' postFetch = ''
@ -21,8 +16,8 @@ in fetchurl rec {
sha256 = "32d6f07f1ff08c764357f8478892b2ba5ade23427af99759f34a0ba24bcd2e37"; sha256 = "32d6f07f1ff08c764357f8478892b2ba5ade23427af99759f34a0ba24bcd2e37";
meta = { meta = {
description = "Pan-unicode version of Fixedsys, a classic DOS font";
homepage = "http://www.fixedsysexcelsior.com/"; homepage = "http://www.fixedsysexcelsior.com/";
description = "Pan-unicode version of Fixedsys, a classic DOS font";
platforms = lib.platforms.all; platforms = lib.platforms.all;
license = lib.licenses.publicDomain; license = lib.licenses.publicDomain;
maintainers = [ lib.maintainers.ninjatrappeur ]; maintainers = [ lib.maintainers.ninjatrappeur ];

View file

@ -1,13 +1,23 @@
{ lib, stdenv, fetchurl, fetchpatch { lib
, libX11, libXext, xorgproto, libjpeg, giflib, libtiff, libpng , stdenv
, fetchurl
, fetchpatch
, giflib
, libX11
, libXext
, libjpeg
, libpng
, libtiff
, xorgproto
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "imlib"; pname = "imlib";
version = "1.9.15"; version = "1.9.15";
src = fetchurl { src = fetchurl {
url = "https://tarballs.nixos.org/imlib-${version}.tar.gz"; url = "https://ftp.acc.umu.se/pub/GNOME/sources/imlib/1.9/${pname}-${version}.tar.gz";
sha256 = "0ggjxyvgp4pxc0b88v40xj9daz90518ydnycw7qax011gxpr12d3"; hash = "sha256-o4mQb38hgK7w4czb5lEoIH3VkuyAbIQWYP2S+7bv8j0=";
}; };
patches = [ patches = [
@ -34,7 +44,15 @@ stdenv.mkDerivation rec {
"--x-libraries=${libX11.out}/lib" "--x-libraries=${libX11.out}/lib"
]; ];
buildInputs = [ libjpeg libXext libX11 xorgproto libtiff giflib libpng ]; buildInputs = [
libjpeg
libXext
libX11
xorgproto
libtiff
giflib
libpng
];
meta = with lib; { meta = with lib; {
description = "An image loading and rendering library for X11"; description = "An image loading and rendering library for X11";

View file

@ -1,21 +1,22 @@
{ lib, stdenv, fetchurl, fetchpatch, fuse }: { lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, fuse
, git
}:
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "aefs"; pname = "aefs";
version = "0.4pre259-8843b7c"; version = "unstable-2015-05-06";
src = fetchurl { src = fetchFromGitHub {
url = "http://tarballs.nixos.org/aefs-${version}.tar.bz2"; owner = "edolstra";
sha256 = "167hp58hmgdavg2mqn5dx1xgq24v08n8d6psf33jhbdabzx6a6zq"; repo = "aefs";
rev = "e7a9bf8cfa9166668fe1514cc1afd31fc4e10e9a";
hash = "sha256-a3YQWxJ7+bYhf1W1kdIykV8U1R4dcDZJ7K3NvNxbF0s=";
}; };
patches = [
(fetchpatch {
url = "https://github.com/edolstra/aefs/commit/15d8df8b8d5dc1ee20d27a86c4d23163a67f3123.patch";
sha256 = "0k36hsyvf8a0ji2hpghgqff2fncj0pllxn8p0rs0aj4h7j2vp4iv";
})
];
# autoconf's AC_CHECK_HEADERS and AC_CHECK_LIBS fail to detect libfuse on # autoconf's AC_CHECK_HEADERS and AC_CHECK_LIBS fail to detect libfuse on
# Darwin if FUSE_USE_VERSION isn't set at configure time. # Darwin if FUSE_USE_VERSION isn't set at configure time.
# #
@ -26,13 +27,16 @@ stdenv.mkDerivation rec {
# $ grep -R FUSE_USE_VERSION # $ grep -R FUSE_USE_VERSION
configureFlags = lib.optional stdenv.isDarwin "CPPFLAGS=-DFUSE_USE_VERSION=26"; configureFlags = lib.optional stdenv.isDarwin "CPPFLAGS=-DFUSE_USE_VERSION=26";
nativeBuildInputs = [ autoreconfHook git ];
buildInputs = [ fuse ]; buildInputs = [ fuse ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/edolstra/aefs"; homepage = "https://github.com/edolstra/aefs";
description = "A cryptographic filesystem implemented in userspace using FUSE"; description = "A cryptographic filesystem implemented in userspace using FUSE";
platforms = platforms.unix;
maintainers = [ maintainers.eelco ]; maintainers = [ maintainers.eelco ];
license = licenses.gpl2; license = licenses.gpl2Plus;
platforms = platforms.unix;
broken = stdenv.isDarwin;
}; };
} }

View file

@ -1,31 +1,35 @@
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre }: { lib
, stdenv
, fetchurl
, unzip
, makeWrapper
, jre
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ec2-api-tools"; pname = "ec2-api-tools";
version = "1.7.5.1"; version = "1.7.5.1";
src = fetchurl { src = fetchurl {
url = "http://tarballs.nixos.org/ec2-api-tools-${version}.zip"; url = "http://s3.amazonaws.com/ec2-downloads/${pname}-${version}.zip";
sha256 = "0figmvcm82ghmpz3018ihysz8zpxpysgbpdx7rmciq9y80qbw6l5"; sha256 = "sha256-hRq+MEA+4chqPr3d9bS//X70tYcRBTD+rfAJVNmuLzo=";
}; };
nativeBuildInputs = [ makeWrapper unzip ]; nativeBuildInputs = [ makeWrapper unzip ];
installPhase = installPhase = ''
'' d=$out/libexec/ec2-api-tools
d=$out/libexec/ec2-api-tools mkdir -p $d
mkdir -p $d mv * $d
mv * $d rm $d/bin/*.cmd # Windows stuff
rm $d/bin/*.cmd # Windows stuff for i in $d/bin/*; do
b=$(basename $i)
for i in $d/bin/*; do if [ $b = "ec2-cmd" ]; then continue; fi
b=$(basename $i) makeWrapper $i $out/bin/$(basename $i) \
if [ $b = "ec2-cmd" ]; then continue; fi --set EC2_HOME $d \
makeWrapper $i $out/bin/$(basename $i) \ --set JAVA_HOME ${jre}
--set EC2_HOME $d \ done
--set JAVA_HOME ${jre} '';
done
''; # */
meta = { meta = {
homepage = "http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351"; homepage = "http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351";