diff options
author | Karel Kočí <cynerd@email.cz> | 2022-01-02 17:22:58 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-01-02 17:23:37 +0100 |
commit | 00e3489cc7ea1edc3e71aaa94a62efbd13d65e49 (patch) | |
tree | 6e3ff363c0036f9abed90d22b095fdc7619062fe /pkgs | |
parent | 794ed83a6c840703798b80503643025327e5c24d (diff) | |
download | nixturris-00e3489cc7ea1edc3e71aaa94a62efbd13d65e49.tar.gz nixturris-00e3489cc7ea1edc3e71aaa94a62efbd13d65e49.tar.bz2 nixturris-00e3489cc7ea1edc3e71aaa94a62efbd13d65e49.zip |
pkgs/logc-0_1: use override to instead of attributes
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/default.nix | 12 | ||||
-rw-r--r-- | pkgs/libraries/logc/default.nix | 5 |
2 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix index ea787f4..0bdc99f 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -13,10 +13,14 @@ let ) { }; logc = callPackage ./libraries/logc { }; - logc-0_1 = callPackage ./libraries/logc { - pkgversion = "0.1.0"; - pkgsha256 = "1swjzs2249wvnqx2zvxwd7d1z22kd3512xxfvq002cvgbq78ka9a"; - }; + logc-0_1 = logc.overrideAttrs (oldAttrs: rec { + version = "0.1.0"; + src = fetchgit { + url = "https://gitlab.nic.cz/turris/logc.git"; + rev = "v" + version; + sha256 = "1swjzs2249wvnqx2zvxwd7d1z22kd3512xxfvq002cvgbq78ka9a"; + }; + }); logc-libs = callPackage ./libraries/logc-libs { }; base64c = callPackage ./libraries/base64c { }; paho-mqtt-c = callPackage ./libraries/paho-mqtt-c { }; diff --git a/pkgs/libraries/logc/default.nix b/pkgs/libraries/logc/default.nix index 1c99e19..784efd7 100644 --- a/pkgs/libraries/logc/default.nix +++ b/pkgs/libraries/logc/default.nix @@ -1,12 +1,11 @@ { stdenv, lib, fetchgit , bootstrapHook, pkg-config, gperf , libconfig -, pkgversion ? "0.4.0", pkgsha256 ? "15nplgjgg6dxryy4yzbj4524y77ci0syi970rmbr955m9vxvhrib" }: stdenv.mkDerivation rec { pname = "logc"; - version = pkgversion; + version = "0.4.0"; meta = with lib; { homepage = "https://gitlab.nic.cz/turris/logc"; description = "Logging for C"; @@ -17,7 +16,7 @@ stdenv.mkDerivation rec { src = fetchgit { url = "https://gitlab.nic.cz/turris/logc.git"; rev = "v" + version; - sha256 = pkgsha256; + sha256 = "15nplgjgg6dxryy4yzbj4524y77ci0syi970rmbr955m9vxvhrib"; }; buildInputs = [libconfig]; |