mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 22:33:46 +03:00
krops: add package
This commit is contained in:
parent
03db1a61b1
commit
e017675d5e
@ -8,6 +8,7 @@ let self = {
|
||||
joinmarket = pkgs.callPackage ./joinmarket { inherit (self) nbPython3Packages; };
|
||||
generate-secrets = pkgs.callPackage ./generate-secrets { };
|
||||
nixops19_09 = pkgs.callPackage ./nixops { };
|
||||
krops = import ./krops { };
|
||||
netns-exec = pkgs.callPackage ./netns-exec { };
|
||||
lightning-loop = pkgs.callPackage ./lightning-loop { };
|
||||
lightning-pool = pkgs.callPackage ./lightning-pool { };
|
||||
|
12
pkgs/krops/default.nix
Normal file
12
pkgs/krops/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
let
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://cgit.krebsco.de/krops";
|
||||
rev = "804c79a14dc8f81a602d31d5a1eed5f82b3f2457";
|
||||
sha256 = "1k20l7zqprsrm9s38xslr7190vssf4sjdprd9gh146hxlvln2qrf";
|
||||
};
|
||||
in {
|
||||
lib = import "${src}/lib";
|
||||
pkgs = import "${src}/pkgs" {};
|
||||
}
|
14
pkgs/krops/get-sha256.sh
Executable file
14
pkgs/krops/get-sha256.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p git
|
||||
set -euo pipefail
|
||||
|
||||
archive_hash () {
|
||||
repo=$1
|
||||
rev=$2
|
||||
nix-prefetch-url --unpack "https://github.com/${repo}/archive/${rev}.tar.gz" 2> /dev/null | tail -n 1
|
||||
}
|
||||
|
||||
echo "Fetching latest krops commit"
|
||||
latest=$(git ls-remote https://github.com/krebs/krops master | cut -f 1)
|
||||
echo "rev: ${latest}"
|
||||
echo "sha256: $(archive_hash krebs/krops $latest)"
|
Loading…
Reference in New Issue
Block a user