mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
bc-ur: init at 0.3.0
This commit is contained in:
parent
205f70b7fb
commit
96937447e7
38
pkgs/by-name/bc/bc-ur/package.nix
Normal file
38
pkgs/by-name/bc/bc-ur/package.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "bc-ur";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BlockchainCommons";
|
||||
repo = "bc-ur";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-j7nmAZH1OL7R5H3jqQomg7kwPOvIHMqrfSk7mq/f7Cg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix missing includes, building on gcc13, add CMakeList.txt
|
||||
(fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/feather-wallet/feather/632963a9e22bf4c8bbe6b5b4d895e31bda17bafd/contrib/depends/patches/bc-ur/build-fix.patch";
|
||||
hash = "sha256-F53/z0maUGfdzJ7qjcLjTzn6+80oxu4sqfQPsDo4HZ0=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/BlockchainCommons/bc-ur";
|
||||
description = "UR reference library in C++";
|
||||
license = licenses.bsd2Patent;
|
||||
maintainers = with maintainers; [ surfaceflinger ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user