profetch: refined code
+ Added missing `"` to the `rev` variable + We use 4-space indentation in bash scripts inside nix code + License in GPL3-only + One-line args because not too much of them
This commit is contained in:
parent
2bd7a492ba
commit
90cc1994d0
1 changed files with 9 additions and 10 deletions
|
@ -1,5 +1,4 @@
|
||||||
{ stdenv, lib
|
{ stdenv, lib, fetchFromGitHub, gprolog }:
|
||||||
, fetchFromGitHub, gprolog }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "profetch";
|
pname = "profetch";
|
||||||
|
@ -8,28 +7,28 @@ stdenv.mkDerivation rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "RustemB";
|
owner = "RustemB";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version};
|
rev = "v${version}";
|
||||||
sha256 = "1clh3l50wz6mlrw9kx0wh2bbhnz6bsksyh4ngz7givv4y3g9m702";
|
sha256 = "1clh3l50wz6mlrw9kx0wh2bbhnz6bsksyh4ngz7givv4y3g9m702";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gprolog ];
|
buildInputs = [ gprolog ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
gplc profetch.pl --no-top-level \
|
gplc profetch.pl --no-top-level --no-debugger \
|
||||||
--no-debugger --no-fd-lib \
|
--no-fd-lib --no-fd-lib-warn \
|
||||||
--no-fd-lib-warn --min-size -o profetch
|
--min-size -o profetch
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
install -Dm755 -t $out/bin profetch
|
install -Dm755 -t $out/bin profetch
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "System Information Fetcher Written in GNU/Prolog";
|
description = "System Information Fetcher Written in GNU/Prolog";
|
||||||
homepage = "https://github.com/RustemB/profetch";
|
homepage = "https://github.com/RustemB/profetch";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Only;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = [ maintainers.vel ];
|
maintainers = [ maintainers.vel ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue