joshuto: 0.9.0 -> 0.9.1
This commit is contained in:
parent
e77de1ec57
commit
5fdb0a6caf
2 changed files with 17 additions and 10 deletions
|
@ -2,23 +2,19 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "joshuto";
|
||||
version = "0.9.0";
|
||||
version = "0.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kamiyaa";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "08d6h7xwcgycw5bdzwwc6aaikcrw3yc7inkiydgml9q261kql7zl";
|
||||
# upstream includes an outdated Cargo.lock that stops cargo from compiling
|
||||
postFetch = ''
|
||||
mkdir -p $out
|
||||
tar xf $downloadedFile --strip=1 -C $out
|
||||
substituteInPlace $out/Cargo.lock \
|
||||
--replace 0.8.6 ${version}
|
||||
'';
|
||||
sha256 = "sha256-+qKOvFoEF/gZL4ijL8lIRWE9ZWJM2eBlk29Lk46jAfQ=";
|
||||
};
|
||||
|
||||
cargoSha256 = "1scrqm7fs8y7anfiigimj7y5rjxcc2qvrxiq8ai7k5cwfc4v1ghm";
|
||||
# upstream includes an outdated Cargo.lock that stops cargo from compiling
|
||||
cargoPatches = [ ./fix-cargo-lock.patch ];
|
||||
|
||||
cargoSha256 = "sha256-JlekxU9pMkHNsIcH3+7b2I6MYUlxRqNX+0wwyVrQMAE=";
|
||||
|
||||
buildInputs = lib.optional stdenv.isDarwin SystemConfiguration;
|
||||
|
||||
|
|
11
pkgs/applications/misc/joshuto/fix-cargo-lock.patch
Normal file
11
pkgs/applications/misc/joshuto/fix-cargo-lock.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/Cargo.lock
|
||||
+++ b/Cargo.lock
|
||||
@@ -512,7 +512,7 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
|
||||
|
||||
[[package]]
|
||||
name = "joshuto"
|
||||
-version = "0.9.0"
|
||||
+version = "0.9.1"
|
||||
dependencies = [
|
||||
"alphanumeric-sort",
|
||||
"chrono",
|
Loading…
Reference in a new issue