summary refs log tree commit diff
path: root/pkgs/games/openttd
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-06-09 23:10:23 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-06-09 23:33:54 -0300
commit2275593fe8a3c577ddf79c46207cfefa7a0f5133 (patch)
tree7ebbf21092d08ae0e862c36428e82c533c92661c /pkgs/games/openttd
parent3b224dccc3306043d1f7ee4dc1229a95e464d665 (diff)
downloadnixpkgs-2275593fe8a3c577ddf79c46207cfefa7a0f5133.tar
nixpkgs-2275593fe8a3c577ddf79c46207cfefa7a0f5133.tar.gz
nixpkgs-2275593fe8a3c577ddf79c46207cfefa7a0f5133.tar.bz2
nixpkgs-2275593fe8a3c577ddf79c46207cfefa7a0f5133.tar.lz
nixpkgs-2275593fe8a3c577ddf79c46207cfefa7a0f5133.tar.xz
nixpkgs-2275593fe8a3c577ddf79c46207cfefa7a0f5133.tar.zst
nixpkgs-2275593fe8a3c577ddf79c46207cfefa7a0f5133.zip
openttd/nml.nix: use SRI hash format
Diffstat (limited to 'pkgs/games/openttd')
-rw-r--r--pkgs/games/openttd/nml.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/games/openttd/nml.nix b/pkgs/games/openttd/nml.nix
index bb44d9eee0b..2f7405725ab 100644
--- a/pkgs/games/openttd/nml.nix
+++ b/pkgs/games/openttd/nml.nix
@@ -1,6 +1,10 @@
-{ stdenv, lib, fetchFromGitHub, python3Packages }:
+{ stdenv
+, lib
+, fetchFromGitHub
+, python3
+}:
 
-python3Packages.buildPythonApplication rec {
+python3.pkgs.buildPythonApplication rec {
   pname = "openttd-nml";
   version = "0.6.1";
 
@@ -8,15 +12,18 @@ python3Packages.buildPythonApplication rec {
     owner = "OpenTTD";
     repo = "nml";
     rev = version;
-    sha256 = "0z0n4lqvnqigfjjhmmz7mvis7iivd4a8d287ya2yscfg5hznnqh2";
+    hash = "sha256-AmJrPyzPMe2F8geJhhRpO8aj467n1wqldC9iuzElFnw=";
   };
 
-  propagatedBuildInputs = with python3Packages; [ply pillow];
+  propagatedBuildInputs = with python3.pkgs; [
+    pillow
+    ply
+  ];
 
   meta = with lib; {
+    homepage = "http://openttdcoop.org/";
     description = "Compiler for OpenTTD NML files";
-    homepage    = "http://openttdcoop.org/";
-    license     = licenses.gpl2;
+    license = licenses.gpl2;
     maintainers = with maintainers; [ ToxicFrog ];
   };
 }