21 lines
405 B
Nix
21 lines
405 B
Nix
{ lib, stdenv, fetchurl, ... }:
|
|
let
|
|
version = "7.0.0";
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "strongbox";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ogri-la/strongbox/releases/download/${version}/strongbox";
|
|
sha256 = "sha256-Q/mYfrKTJ3zxkSl2onqWsrRGNtx1KM3AEsOM4hkzMM0=";
|
|
};
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
chmod +x $src
|
|
install -D $src $out/bin/strongbox
|
|
'';
|
|
}
|