mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
networkmanager-iodine: add updateScript
This commit is contained in:
parent
8aa3b5c916
commit
dcfbe14f0e
1 changed files with 12 additions and 5 deletions
|
@ -1,14 +1,14 @@
|
|||
{ stdenv, fetchurl, iodine, intltool, pkgconfig, networkmanager, libsecret
|
||||
, withGnome ? true, gnome3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
||||
let
|
||||
pname = "NetworkManager-iodine";
|
||||
major = "1.2";
|
||||
version = "${major}.0";
|
||||
version = "1.2.0";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${major}/${pname}-${version}.tar.xz";
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "0njdigakidji6mfmbsp8lfi8wl88z1dk8cljbva2w0xazyddbwyh";
|
||||
};
|
||||
|
||||
|
@ -32,6 +32,13 @@ stdenv.mkDerivation rec {
|
|||
--replace "/usr/bin/iodine" "${iodine}/bin/iodine"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "networkmanager-iodine";
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "NetworkManager's iodine plugin";
|
||||
inherit (networkmanager.meta) maintainers platforms;
|
||||
|
|
Loading…
Reference in a new issue