Merge pull request #167333 from peterwilli/terra-station
terra-station: init at 1.2.0
This commit is contained in:
commit
3c0c2a1b87
3 changed files with 83 additions and 0 deletions
|
@ -10241,6 +10241,16 @@
|
|||
githubId = 29493551;
|
||||
name = "Josh Peters";
|
||||
};
|
||||
peterwilli = {
|
||||
email = "peter@codebuffet.co";
|
||||
github = "peterwilli";
|
||||
githubId = 1212814;
|
||||
name = "Peter Willemsen";
|
||||
keys = [{
|
||||
longkeyid = "rsa4096/0x5C9DD4BFB96A28F0";
|
||||
fingerprint = "A37F D403 88E2 D026 B9F6 9617 5C9D D4BF B96A 28F0";
|
||||
}];
|
||||
};
|
||||
peti = {
|
||||
email = "simons@cryp.to";
|
||||
github = "peti";
|
||||
|
|
71
pkgs/applications/blockchains/terra-station/default.nix
Normal file
71
pkgs/applications/blockchains/terra-station/default.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, gcc-unwrapped
|
||||
, dpkg
|
||||
, util-linux
|
||||
, bash
|
||||
, makeWrapper
|
||||
, electron
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
|
||||
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
|
||||
|
||||
sha256 = {
|
||||
"x86_64-linux" = "139nlr191bsinx6ixpi2glcr03lsnzq7b0438h3245napsnjpx6p";
|
||||
}."${system}" or throwSystem;
|
||||
|
||||
arch = {
|
||||
"x86_64-linux" = "amd64";
|
||||
}."${system}" or throwSystem;
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "terra-station";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/terra-money/station-desktop/releases/download/v${version}/Terra.Station_${version}_${arch}.deb";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
unpackPhase = ''
|
||||
${dpkg}/bin/dpkg-deb -x $src .
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin $out/share/${pname}
|
||||
|
||||
cp -a usr/share/* $out/share
|
||||
cp -a "opt/Terra Station/"{locales,resources} $out/share/${pname}
|
||||
|
||||
substituteInPlace $out/share/applications/station-electron.desktop \
|
||||
--replace "/opt/Terra Station/station-electron" ${pname}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
makeWrapper ${electron}/bin/electron $out/bin/${pname} \
|
||||
--add-flags $out/share/${pname}/resources/app.asar \
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ gcc-unwrapped.lib ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Terra station is the official wallet of the Terra blockchain.";
|
||||
homepage = "https://docs.terra.money/docs/learn/terra-station/README.html";
|
||||
license = licenses.isc;
|
||||
maintainers = [ maintainers.peterwilli ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
|
@ -32552,6 +32552,8 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
terra-station = callPackage ../applications/blockchains/terra-station { };
|
||||
|
||||
tessera = callPackage ../applications/blockchains/tessera { };
|
||||
|
||||
vertcoin = libsForQt514.callPackage ../applications/blockchains/vertcoin {
|
||||
|
|
Loading…
Reference in a new issue