mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #307320 from OlivierLDff/stduuid-version-fix
stduuid: fix cmake version
This commit is contained in:
commit
1383c90051
@ -1,7 +1,8 @@
|
||||
{ stdenv, cmake, fetchFromGitHub, lib }: let
|
||||
{ stdenv, cmake, fetchFromGitHub, fetchpatch, lib }: let
|
||||
version = "1.2.3";
|
||||
in stdenv.mkDerivation {
|
||||
name = "stduuid-${version}";
|
||||
pname = "stduuid";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mariusbancila";
|
||||
@ -12,6 +13,15 @@ in stdenv.mkDerivation {
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
patches = [
|
||||
# stduuid report version 1.0 instead of 1.2.3 for cmake's find_package to properly work
|
||||
# If version is updated one day, this patch will need to be updated
|
||||
(fetchpatch {
|
||||
url = "https://github.com/OlivierLDff/stduuid/commit/b02c70c0a4bef2c82152503e13c9a67d6631b13d.patch";
|
||||
hash = "sha256-tv4rllhngdgjXX35kcM69yXo0DXF/BQ+AUbiC1gJIU8=";
|
||||
})
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A C++17 cross-platform implementation for UUIDs";
|
||||
license = lib.licenses.mit;
|
@ -24601,8 +24601,6 @@ with pkgs;
|
||||
|
||||
stb = callPackage ../development/libraries/stb { };
|
||||
|
||||
stduuid = callPackage ../development/libraries/stduuid { };
|
||||
|
||||
steghide = callPackage ../tools/graphics/steghide { };
|
||||
|
||||
stegsolve = callPackage ../tools/graphics/stegsolve { };
|
||||
|
Loading…
Reference in New Issue
Block a user