50 lines
1.3 KiB
Nix
Raw Normal View History

2021-02-07 02:38:11 +03:00
# { stdenv, fetchFromGitHub, rustPlatform, cmake, pkgconfig, pkgs }:
2020-08-08 17:38:29 +04:00
2021-02-07 02:38:11 +03:00
# with rustPlatform;
2020-08-08 17:38:29 +04:00
2021-02-07 02:38:11 +03:00
# buildRustPackage rec {
# pname = "nomino";
# version = "0.4.2";
# cargoSha256 = "sha256-9p/HD16yreWdjbCaUaan07fnVpPwOCiHaVemfXP6L8c=";
# src = fetchFromGitHub {
# owner = "yaa110";
# repo = "nomino";
# rev = "8f437051ea51d333aa685679f0e5902d6709d7ef";
# sha256 = "1qmy73gmmf0i9svzrw2jz7nlypfybyd1izwd1a13fgm9dn7amja3";
# };
2020-08-08 17:38:29 +04:00
2021-02-07 02:38:11 +03:00
# nativeBuildInputs = [ cmake pkgconfig ];
2020-08-08 17:38:29 +04:00
2021-02-07 02:38:11 +03:00
# meta = with pkgs.lib; {
# description = "Batch rename utility for developers";
# homepage = "https://github.com/yaa110/nomino";
# license = licenses.mit;
# maintainers = with maintainers; [ alukardbf ];
# };
# }
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation {
pname = "nomino";
version = "0.4.5";
src = fetchurl {
url = "https://github.com/yaa110/nomino/releases/download/0.4.5/nomino-linux-64bit";
sha256 = "03ymw74xprgxwxizlpcd5fbhv6zc7avjqw881lm74xsn3ax4m3b8";
2020-08-08 17:38:29 +04:00
};
2021-02-07 02:38:11 +03:00
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/bin
cp $src $out/bin/nomino
'';
2020-08-08 17:38:29 +04:00
2021-02-07 02:38:11 +03:00
meta = with lib; {
2020-08-08 17:38:29 +04:00
description = "Batch rename utility for developers";
homepage = "https://github.com/yaa110/nomino";
license = licenses.mit;
maintainers = with maintainers; [ alukardbf ];
};
}