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:
veleth 2021-08-13 09:36:00 +03:00 committed by GitHub
parent 2bd7a492ba
commit 90cc1994d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,4 @@
{ stdenv, lib
, fetchFromGitHub, gprolog }:
{ stdenv, lib, fetchFromGitHub, gprolog }:
stdenv.mkDerivation rec {
pname = "profetch";
@ -8,16 +7,16 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "RustemB";
repo = pname;
rev = "v${version};
rev = "v${version}";
sha256 = "1clh3l50wz6mlrw9kx0wh2bbhnz6bsksyh4ngz7givv4y3g9m702";
};
buildInputs = [ gprolog ];
buildPhase = ''
gplc profetch.pl --no-top-level \
--no-debugger --no-fd-lib \
--no-fd-lib-warn --min-size -o profetch
gplc profetch.pl --no-top-level --no-debugger \
--no-fd-lib --no-fd-lib-warn \
--min-size -o profetch
runHook postBuild
'';
@ -29,7 +28,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "System Information Fetcher Written in GNU/Prolog";
homepage = "https://github.com/RustemB/profetch";
license = licenses.gpl3;
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = [ maintainers.vel ];
};