1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00
nixpkgs/pkgs/tools/system/storebrowse/default.nix
rushmorem 6e709b180e storebrowse: mark broken
`storebrowse` depends on https://code.google.com/archive/p/gosqlite/
which leads to gosqlite.googlecode.com/hg/sqlite which now 404s.
2016-06-09 22:09:07 +02:00

47 lines
1.3 KiB
Nix

{ stdenv, fetchurl, fetchhg, go, sqlite}:
assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isArm);
stdenv.mkDerivation rec {
name = "storebrowse-20130318212204";
src = fetchurl {
url = "http://viric.name/cgi-bin/storebrowse/tarball/storebrowse-775928f68e53.tar.gz?uuid=775928f68e53";
name = "${name}.tar.gz";
sha256 = "1yb8qbw95d9561s10k12a6lwv3my8h52arsbfcpizx74dwfsv7in";
};
# This source has license BSD
srcGoSqlite = fetchhg {
url = "https://code.google.com/p/gosqlite/";
rev = "5baefb109e18";
sha256 = "0mqfnx06jj15cs8pq9msny2z18x99hgk6mchnaxpg343nzdiz4zk";
};
buildPhase = ''
PATH=${go}/bin:$PATH
mkdir $TMPDIR/go
export GOPATH=$TMPDIR/go
${stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "export GOARM=5"}
GOSQLITE=$GOPATH/src/code.google.com/p/gosqlite
mkdir -p $GOSQLITE
cp -R $srcGoSqlite/* $GOSQLITE/
export CGO_CFLAGS=-I${sqlite.dev}/include
export CGO_LDFLAGS=-L${sqlite.out}/lib
go build -ldflags "-r ${sqlite.out}/lib" -o storebrowse
'';
installPhase = ''
mkdir -p $out/bin
cp storebrowse $out/bin
'';
meta = {
homepage = http://viric.name/cgi-bin/storebrowse;
license = stdenv.lib.licenses.agpl3Plus;
broken = true;
};
}