Skip to content

Commit 714ed5b

Browse files
committed
ktl: use packaged cmake-utils
1 parent 40fc5aa commit 714ed5b

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
koivisto = pkgs.callPackage ./pkgs/koivisto { };
6060

61-
ktl = pkgs.callPackage ./pkgs/ktl { };
61+
ktl = pkgs.callPackage ./pkgs/ktl { cmake-utils = cmake-utils; };
6262

6363
lexy = pkgs.callPackage ./pkgs/lexy { };
6464

pkgs/ktl/default.nix

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
1-
{ lib, stdenv, fetchFromGitHub, cmake }:
2-
let
3-
cmake-utils = stdenv.mkDerivation rec {
4-
name = "cmake-utils";
5-
fetchurl = "https://raw.githubusercontent.com/karnkaul/cmake-utils/refs/heads/main/cmake-utils.cmake";
6-
src = builtins.fetchurl {
7-
url = fetchurl;
8-
name = "cmake-utils.cmake";
9-
sha256 = "sha256:1y5xjhqx05mwd5iagfcr2kyydib5lvrg7nhm59i3mpyljcyv4lky";
10-
};
11-
dontUnpack = true;
12-
installPhase = "install -D $src $out/" + builtins.baseNameOf fetchurl;
13-
};
14-
in
1+
{ lib, stdenv, fetchFromGitHub, cmake, cmake-utils }:
152
stdenv.mkDerivation rec {
163
pname = "ktl";
174
version = "1.4.2";

0 commit comments

Comments
 (0)