biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / st / stduuid / package.nix
blobd11f9b753c2a7ac9ee7ed71ffabd5544677108f5
1 { stdenv, cmake, fetchFromGitHub, fetchpatch, lib }: let
2   version = "1.2.3";
3 in stdenv.mkDerivation {
4   pname = "stduuid";
5   inherit version;
7   src = fetchFromGitHub {
8     owner = "mariusbancila";
9     repo = "stduuid";
10     rev = "v${version}";
11     hash = "sha256-MhpKv+gH3QxiaQMx5ImiQjDGrbKUFaaoBLj5Voh78vg=";
12   };
14   nativeBuildInputs = [ cmake ];
16   patches = [
17     # stduuid report version 1.0 instead of 1.2.3 for cmake's find_package to properly work
18     # If version is updated one day, this patch will need to be updated
19     (fetchpatch {
20       url = "https://github.com/OlivierLDff/stduuid/commit/b02c70c0a4bef2c82152503e13c9a67d6631b13d.patch";
21       hash = "sha256-tv4rllhngdgjXX35kcM69yXo0DXF/BQ+AUbiC1gJIU8=";
22     })
23   ];
25   meta = {
26     description = "C++17 cross-platform implementation for UUIDs";
27     license = lib.licenses.mit;
28     maintainers = [ lib.maintainers.shlevy ];
29     homepage = "https://github.com/mariusbancila/stduuid";
30     platforms = lib.platforms.all;
31   };