-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a new tool for "translating and transposing URLs, made by curl's Daniel Sternberg. Signed-off-by: Christoph Heiss <christoph@c8h4.io>
- Loading branch information
1 parent
e876881
commit 5526f5f
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ lib, stdenv, fetchFromGitHub, runCommand, curl, perl }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "trurl"; | ||
version = "0.2"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "curl"; | ||
repo = pname; | ||
rev = "${pname}-${version}"; | ||
sha256 = "sha256-rUYw5LOHTfjVseODxsW4GhH67SSIpY03l1Gp3ke+xX0="; | ||
}; | ||
|
||
separateDebugInfo = stdenv.isLinux; | ||
|
||
enableParallelBuilding = true; | ||
|
||
propagatedBuildInputs = [ curl ]; | ||
makeFlags = [ "PREFIX=$(out)" ]; | ||
|
||
doCheck = true; | ||
checkInputs = [ perl ]; | ||
checkTarget = "test"; | ||
|
||
meta = with lib; { | ||
description = "A command line tool for URL parsing and manipulation"; | ||
homepage = "https://curl.se/trurl"; | ||
license = licenses.curl; | ||
maintainers = with maintainers; [ christoph-heiss ]; | ||
platforms = platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters