Skip to content

Commit 11ff8c7

Browse files
committed
fix: drop deprecated stdenv.lib & quote urls for nix-mode
stdenv.lib has been deprecated as well as unquoted urls
1 parent 03a62fe commit 11ff8c7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

nix-mode/package.github

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# key: pkgg
44
# uuid: pkgg
55
# --
6-
{ stdenv, fetchFromGitHub$1 }:
6+
{ stdenv, lib, fetchFromGitHub$1 }:
77

88
stdenv.mkDerivation rec {
99
name = "$2-\$\{version\}";
@@ -20,9 +20,9 @@ stdenv.mkDerivation rec {
2020

2121
meta = {
2222
description = "$7";
23-
homepage = https://${8:github.com/$4/$2};
23+
homepage = "https://${8:github.com/$4/$2}";
2424

25-
license = stdenv.lib.licenses.${9:$$
25+
license = lib.licenses.${9:$$
2626
(yas-choose-value '(
2727
"agpl3"
2828
"asl20"
@@ -33,8 +33,8 @@ stdenv.mkDerivation rec {
3333
"lgpl3"
3434
"mit"
3535
))};
36-
maintainers = [ stdenv.lib.maintainers.$10 ];
37-
platforms = stdenv.lib.platforms.${11:$$
36+
maintainers = [ lib.maintainers.$10 ];
37+
platforms = lib.platforms.${11:$$
3838
(yas-choose-value '(
3939
"gnu"
4040
"linux"

nix-mode/package.url

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# key: pkgu
44
# uuid: pkgu
55
# --
6-
{ stdenv, fetchurl$1 }:
6+
{ stdenv, lib, fetchurl$1 }:
77

88
stdenv.mkDerivation rec {
99
version = "$2";
@@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
1818

1919
meta = {
2020
description = "$6";
21-
homepage = https://$7;
22-
license = stdenv.lib.licenses.${8:$$
21+
homepage = "https://$7";
22+
license = lib.licenses.${8:$$
2323
(yas-choose-value '(
2424
"agpl3"
2525
"asl20"
@@ -30,8 +30,8 @@ stdenv.mkDerivation rec {
3030
"lgpl3"
3131
"mit"
3232
))};
33-
maintainers = [ stdenv.lib.maintainers.$9 ];
34-
platforms = stdenv.lib.platforms.${10:$$
33+
maintainers = [ lib.maintainers.$9 ];
34+
platforms = platforms.${10:$$
3535
(yas-choose-value '(
3636
"gnu"
3737
"linux"

0 commit comments

Comments
 (0)