2
0
Fork 0
genodepkgs/packages/block_router/default.nix

39 lines
734 B
Nix
Raw Normal View History

2020-04-04 12:47:44 +02:00
# SPDX-License-Identifier: CC0-1.0
{ stdenv, fetchgit, tup, pkgconfig }:
stdenv.mkDerivation rec {
pname = "block_router";
2020-04-13 09:10:45 +02:00
version = "0.1.1";
2020-04-04 12:47:44 +02:00
nativeBuildInputs = [ tup pkgconfig ];
src = fetchgit {
url = "https://git.sr.ht/~ehmry/block_router";
rev = "v" + version;
2020-04-13 09:10:45 +02:00
sha256 = "0vw3s4q3rp5dp1i93sq0cybfssh3gbqgyqg6k69781pjda7mzn54";
2020-04-04 12:47:44 +02:00
};
configurePhase = ''
# Scan repository and generate script
tup init
tup generate buildPhase.sh
'';
buildPhase = ''
pushd .
set -v
source buildPhase.sh
set +v
popd
'';
installPhase = "install -Dm755 {.,$out}/block_router";
meta = with stdenv.lib; {
license = licenses.agpl3;
maintainers = [ maintainers.ehmry ];
};
}