Adding storebrowse, a tool to browse the nix store with a web browser.
The build script is a bit long due to the upstream go style of things.
This commit is contained in:
parent
893c684e99
commit
4dbdbda37f
42
pkgs/tools/system/storebrowse/default.nix
Normal file
42
pkgs/tools/system/storebrowse/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ stdenv, fetchurl, fetchhg, go, sqlite}:
|
||||
|
||||
assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64);
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "storebrowser-20130315233902";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://viric.name/cgi-bin/storebrowse/tarball/storebrowse-f87547f083bfb75b.tar.gz?uuid=f87546f083bfb75b";
|
||||
name = "${name}.tar.gz";
|
||||
sha256 = "1c9al500wril7bq25smi9m7byfdf33arzyb8px5w8a2dv2cyl20w";
|
||||
};
|
||||
|
||||
srcGoSqlite = fetchhg {
|
||||
url = "https://code.google.com/p/gosqlite/";
|
||||
tag = "5baefb109e18";
|
||||
sha256 = "0mqfnx06jj15cs8pq9msny2z18x99hgk6mchnaxpg343nzdiz4zk";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
PATH=${go}/bin:$PATH
|
||||
mkdir $TMPDIR/go
|
||||
export GOPATH=$TMPDIR/go
|
||||
|
||||
GOSQLITE=$GOPATH/src/code.google.com/p/gosqlite
|
||||
mkdir -p $GOSQLITE
|
||||
cp -R $srcGoSqlite/* $GOSQLITE/
|
||||
export CGO_CFLAGS=-I${sqlite}/include
|
||||
export CGO_LDFLAGS=-L${sqlite}/lib
|
||||
go build -ldflags "-r ${sqlite}/lib" -o storebrowse
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
cp storebrowse $out/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://viric.name/cgi-bin/storebrowse;
|
||||
license = "AGPLv3+";
|
||||
};
|
||||
}
|
@ -1565,6 +1565,8 @@ let
|
||||
inherit (gnome) libgnomeui scrollkeeper;
|
||||
};
|
||||
|
||||
storebrowse = callPackage ../tools/system/storebrowse { };
|
||||
|
||||
fusesmb = callPackage ../tools/filesystems/fusesmb { };
|
||||
|
||||
socat = callPackage ../tools/networking/socat { };
|
||||
|
Loading…
Reference in New Issue
Block a user