diff --git a/nix/pkgs/just.nix b/nix/pkgs/just.nix index f1a0fa5..24b37a0 100644 --- a/nix/pkgs/just.nix +++ b/nix/pkgs/just.nix @@ -1,24 +1,26 @@ { rustPlatform , stdenv +, fetchFromGitHub +, callPackage +, bash }: - rustPlatform.buildRustPackage rec { - name = "just-${version}"; - version = "849cdcb37fb42feb5e8724ec9fb3b34027e0da4f"; +let + naersk = callPackage (import (fetchFromGitHub { + owner = "nmattia"; + repo = "naersk"; + rev = "b3b328b088009972e6844f57c97807f6090fa004"; + sha256 = "152fl2c174zisl2bcky7xspwhc2s8ys2qdv6nvfhqav5x1rbngbp"; + })) {}; + +in + naersk.buildPackage rec { + version = "5acc112a9749063a554e3626a6055bb88f093468"; + src = builtins.fetchGit { url = "https://github.com/casey/just.git"; rev = version; }; - - cargoSha256 = "0awfq9fhcin2q6mvv54xw6i6pxhdp9xa1cpx3jmpf3a6h8l6s9wp"; - + doDoc = false; doCheck = false; - - meta = with stdenv.lib; { - description = "Just a command runner "; - homepage = https://github.com/casey/just; - license = licenses.unlicense; - maintainers = [ ]; - platforms = platforms.all; - }; }