Skip to content

Commit

Permalink
Merge pull request #177118 from AndersonTorres/SRI-hashes-II
Browse files Browse the repository at this point in the history
Treewide: SRI hashes
  • Loading branch information
AndersonTorres authored Jun 10, 2022
2 parents d9b980c + 3f95347 commit 5370e40
Show file tree
Hide file tree
Showing 19 changed files with 284 additions and 136 deletions.
61 changes: 32 additions & 29 deletions pkgs/applications/gis/openorienteering-mapper/default.nix
Original file line number Diff line number Diff line change
@@ -1,45 +1,33 @@
{ lib, stdenv
{ lib
, stdenv
, mkDerivation
, fetchFromGitHub
, fetchpatch
, substituteAll
, gdal
, clipper
, cmake
, cups
, doxygen
, gdal
, ninja
, proj
, clipper
, zlib
, qttools
, qtimageformats
, qtlocation
, qtsensors
, qttools
, qttranslations
, doxygen
, cups
, qtimageformats
, substituteAll
, zlib
}:

mkDerivation rec {
pname = "OpenOrienteering-Mapper";
version = "0.9.5";

buildInputs = [
gdal
qtlocation
qtimageformats
qtsensors
clipper
zlib
proj
cups
];

nativeBuildInputs = [ cmake doxygen ninja qttools ];

src = fetchFromGitHub {
owner = "OpenOrienteering";
repo = "mapper";
rev = "v${version}";
sha256 = "1w8ikqpgi0ksrzjal5ihfaik4grc5v3gdnnv79j20xkr2p4yn1h5";
hash = "sha256-BQbryRV5diBkOtva9sYuLD8yo3IwFqrkz3qC+C6eEfE=";
};

patches = [
Expand All @@ -55,6 +43,24 @@ mkDerivation rec {
})
];

nativeBuildInputs = [
cmake
doxygen
ninja
qttools
];

buildInputs = [
clipper
cups
gdal
proj
qtimageformats
qtlocation
qtsensors
zlib
];

cmakeFlags = [
# Building the manual and bundling licenses fails
# See https://github.com/NixOS/nixpkgs/issues/85306
Expand All @@ -81,15 +87,12 @@ mkDerivation rec {
'';

meta = with lib; {
broken = stdenv.isDarwin;
description = ''
OpenOrienteering Mapper is an orienteering mapmaking program
and provides a free alternative to the existing proprietary solution.
'';
homepage = "https://www.openorienteering.org/apps/mapper/";
description = "An orienteering mapmaking program";
changelog = "https://github.com/OpenOrienteering/mapper/releases/tag/v${version}";
license = licenses.gpl3Plus;
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ mpickering sikmir ];
platforms = with platforms; unix;
broken = stdenv.isDarwin;
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/gis/udig/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ let
srcs = {
x86_64-linux = fetchurl {
url = "http://udig.refractions.net/files/downloads/udig-${version}.linux.gtk.x86_64.zip";
sha256 = "03hj1mdd6sq0gbpa838wkccibp3l2hvnwxxf5dyc0jk3mmd94fwa";
hash = "sha256-ijuSWq1jSsB8K653bjcUdNwVGZscDaTuegBr01oNEg4=";
};
x86_64-darwin = fetchurl {
url = "http://udig.refractions.net/files/downloads/udig-${version}.macosx.cocoa.x86_64.zip";
sha256 = "16rcyp1zy3lr1hwjhzh6vwcgck52w66dm1qsc52gppy1f4i3f692";
hash = "sha256-Ihk3InHB3/tEYRqH2ozhokz2GN8Gfig5DJkO/8P1LJs=";
};
};
src = srcs.${stdenv.hostPlatform.system};
Expand Down
20 changes: 14 additions & 6 deletions pkgs/applications/gis/whitebox-tools/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security }:
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, Security
}:

rustPlatform.buildRustPackage rec {
pname = "whitebox_tools";
version = "2.0.0";
Expand All @@ -7,20 +13,22 @@ rustPlatform.buildRustPackage rec {
owner = "jblindsay";
repo = "whitebox-tools";
rev = "7551aa70e8d9cbd8b3744fde48e82aa40393ebf8";
sha256 = "0mngw99aj60bf02y3piimxc1z1zbw1dhwyixndxh3b3m9xqhk51h";
hash = "sha256-MJQJcU91rAF7sz16Dlvg64cfWK8x3uEFcAsYqVLiz1Y=";
};

cargoPatches = [./update-cargo-lock.patch];
cargoSha256 = "sha256-+IFLv/mIgqyDKNC5aZgQeW6Ymu6+desOD8dDvEdwsSM=";

buildInputs = lib.optional stdenv.isDarwin Security;
cargoPatches = [
./update-cargo-lock.patch
];

cargoSha256 = "08xif13vqhy71w7fnxdyxsd9hvkr22c6kffh521sr0l8z6zlp0gq";
buildInputs = lib.optional stdenv.isDarwin Security;

doCheck = false;

meta = with lib; {
description = "An advanced geospatial data analysis platform";
homepage = "https://jblindsay.github.io/ghrg/WhiteboxTools/index.html";
description = "An advanced geospatial data analysis platform";
license = licenses.mit;
maintainers = [ maintainers.mpickering ];
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/desktops/gnome/apps/gnome-todo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
# fix build race bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257667
(fetchpatch {
url = "https://cgit.freebsd.org/ports/plain/deskutils/gnome-todo/files/patch-src_meson.build?id=a4faaf6cf7835014b5f69a337b544ea4ee7f9655";
sha256 = "sha256:0ihixyq72yhx6njij7bldsqb80x3y217yh6livknlf5r1wr3hakn";
sha256 = "sha256-dio4Mg+5OGrnjtRAf4LwowO0sG50HRmlNR16cbDvEUY=";
extraPrefix = "";
name = "gnome-todo_meson-build.patch";
})
Expand Down
2 changes: 1 addition & 1 deletion pkgs/games/bugdom/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
owner = "jorio";
repo = pname;
rev = version;
sha256 = "sha256:1371inw11rzfrxmc3v4gv5axp56bxjbcr0mhqm4x839401bfq5mf";
sha256 = "sha256-rhbsVgAkDdRJxbCCzJbsy5TbVdmP7MFqz+7nELiN4Yw=";
fetchSubmodules = true;
};

Expand Down
38 changes: 24 additions & 14 deletions pkgs/games/fairymax/default.nix
Original file line number Diff line number Diff line change
@@ -1,39 +1,49 @@
{lib, stdenv, fetchurl}:
{ lib
, stdenv
, fetchurl
}:

stdenv.mkDerivation rec {
pname = "fairymax";
version = "4.8";

src = fetchurl {
url = "http://home.hccnet.nl/h.g.muller/fmax4_8w.c";
sha256 = "01vxhpa4z0613mkgkzmsln293wxmyp5kdzil93cd1ik51q4gwjca";
hash = "sha256-ikn+CA5lxtDYSDT+Nsv1tfORhKW6/vlmHcGAT9SFfQc=";
};

ini = fetchurl {
url = "http://home.hccnet.nl/h.g.muller/fmax.ini";
sha256 = "1zwx70g3gspbqx1zf9gm1may8jrli9idalvskxbdg33qgjys47cn";
hash = "sha256-lh2ivXx4jNdWn3pT1WKKNEvkVQ31JfdDx+vqNx44nf8=";
};

unpackPhase = ''
cp ${src} fairymax.c
cp ${ini} fmax.ini
'';

buildPhase = ''
$CC *.c -Wno-return-type -o fairymax -DINI_FILE='"'"$out/share/fairymax/fmax.ini"'"'
cc *.c -Wno-return-type \
-o fairymax \
-DINI_FILE='"'"$out/share/fairymax/fmax.ini"'"'
'';

installPhase = ''
mkdir -p "$out"/{bin,share/fairymax}
cp fairymax "$out/bin"
cp fmax.ini "$out/share/fairymax"
'';
meta = {

meta = with lib; {
homepage = "http://home.hccnet.nl/h.g.muller/dwnldpage.html";
description = "A small chess engine supporting fairy pieces";
longDescription = ''
A version of micro-Max that reads the piece description
from a file fmax.ini, so that arbitrary fairy pieces can be
implemented. This version (4.8J) supports up to 15 piece types,
and board sizes up to 12x8. A Linux port exists in the
format of a debian package.
A version of micro-Max that reads the piece description from a file
fmax.ini, so that arbitrary fairy pieces can be implemented. This version
(4.8J) supports up to 15 piece types, and board sizes up to 12x8.
'';
license = lib.licenses.free ;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.all;
homepage = "http://home.hccnet.nl/h.g.muller/dwnldpage.html";
license = licenses.free;
maintainers = [ maintainers.raskin ];
platforms = platforms.all;
};
}
20 changes: 12 additions & 8 deletions pkgs/games/gshogi/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{ lib, buildPythonApplication, fetchFromGitHub
, gtk3, gobject-introspection
, wrapGAppsHook, python3Packages }:
{ lib
, fetchFromGitHub
, gobject-introspection
, gtk3
, python3
, wrapGAppsHook
}:

buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "gshogi";
version = "0.5.1";

src = fetchFromGitHub {
owner = "johncheetham";
repo = "gshogi";
rev = "v${version}";
sha256 = "06vgndfgwyfi50wg3cw92zspc9z0k7xn2pp6qsjih0l5yih8iwqh";
hash = "sha256-EPOIYPSFAhilxuZeYfuZ4Cd29ReJs/E4KNF5/lyzbxs=";
};

doCheck = false; # no tests available
Expand All @@ -22,15 +26,15 @@ buildPythonApplication rec {

nativeBuildInputs = [ wrapGAppsHook ];

propagatedBuildInputs = with python3Packages; [
propagatedBuildInputs = with python3.pkgs; [
pygobject3
pycairo
];

meta = with lib; {
description = "A graphical implementation of the Shogi board game, also known as Japanese Chess";
homepage = "http://johncheetham.com/projects/gshogi/";
license = licenses.gpl3;
description = "A graphical implementation of the Shogi board game, also known as Japanese Chess";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.ciil ];
};
Expand Down
15 changes: 11 additions & 4 deletions pkgs/games/julius/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_mixer, libpng }:
{ lib
, stdenv
, fetchFromGitHub
, SDL2
, SDL2_mixer
, cmake
, libpng
}:

stdenv.mkDerivation rec {
pname = "julius";
Expand All @@ -8,18 +15,18 @@ stdenv.mkDerivation rec {
owner = "bvschaik";
repo = "julius";
rev = "v${version}";
sha256 = "0w7kmgz9ya0ck9cxhsyralarg7y6ydx4plmh33r4mkxkamlr7493";
hash = "sha256-I5GTaVWzz0ryGLDSS3rzxp+XFVXZa9hZmgwon/6r83A=";
};

nativeBuildInputs = [ cmake ];
buildInputs = [ SDL2 SDL2_mixer libpng ];

meta = with lib; {
description = "An open source re-implementation of Caesar III";
homepage = "https://github.com/bvschaik/julius";
description = "An open source re-implementation of Caesar III";
license = licenses.agpl3;
maintainers = with maintainers; [ Thra11 ];
platforms = platforms.all;
broken = stdenv.isDarwin;
maintainers = with maintainers; [ Thra11 ];
};
}
33 changes: 17 additions & 16 deletions pkgs/games/koules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,28 @@
, lib
, fetchurl
, fetchzip
, makeDesktopItem
, copyDesktopItems
, imake
, gccmakedep
, imake
, installShellFiles
, libX11
, libXext
, installShellFiles
, makeDesktopItem
}:

let
debian-extras = fetchzip {
url = "mirror://debian/pool/main/k/koules/koules_1.4-27.debian.tar.xz";
sha256 = "0bq1rr6vxqmx2k0dhyrqnwwfiw4h2ycbj576v66vwr0jaq5plil3";
hash = "sha256-g0Z6C1YSZL6N2eYUuZgXkPDoOLc4e9jAFL3ivk3OAS8=";
};
in

stdenv.mkDerivation rec {
pname = "koules";
version = "1.4";

src = fetchurl {
url = "https://www.ucw.cz/~hubicka/koules/packages/${pname}${version}-src.tar.gz";
sha256 = "06x2wkpns14kii9fxmxbmj5lma371qj00hgl7fc5kggfmzz96vy3";
hash = "sha256-w2+T/q/uvVmYO/RBACQOZ6hKi6yr1+5SjJMEbe/kohs=";
};

nativeBuildInputs = [ imake gccmakedep installShellFiles copyDesktopItems ];
Expand Down Expand Up @@ -57,20 +56,22 @@ stdenv.mkDerivation rec {
runHook postInstall
'';

desktopItems = [ (makeDesktopItem {
desktopName = "Koules";
name = "koules";
exec = "xkoules";
icon = "koules";
comment = "Push your enemies away, but stay away from obstacles";
categories = [ "Game" "ArcadeGame" ];
}) ];
desktopItems = [
(makeDesktopItem {
desktopName = "Koules";
name = "koules";
exec = "xkoules";
icon = "koules";
comment = "Push your enemies away, but stay away from obstacles";
categories = [ "Game" "ArcadeGame" ];
})
];

meta = with lib; {
description = "Fast arcade game based on the fundamental law of body attraction";
homepage = "https://www.ucw.cz/~hubicka/koules/English/";
description = "Fast arcade game based on the fundamental law of body attraction";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.iblech ];
platforms = platforms.linux;
};
}
Loading

0 comments on commit 5370e40

Please sign in to comment.