From 93b02dd872d93c4fa0d7333f5822e11ffdf07f2b Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 15 Jun 2020 11:01:49 +0200 Subject: ma pkgs.soldat: init --- makefu/5pkgs/soldat/default.nix | 119 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 makefu/5pkgs/soldat/default.nix (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/soldat/default.nix b/makefu/5pkgs/soldat/default.nix new file mode 100644 index 000000000..0b313a065 --- /dev/null +++ b/makefu/5pkgs/soldat/default.nix @@ -0,0 +1,119 @@ +{ stdenv,fpc,zip, fetchFromGitHub, autoPatchelfHook, callPackage, +freetype,openal,x11,SDL2,physfs_2, protobuf, openssl, cmake, ninja, +meson,pkgconfig, makeWrapper }: + +let + GameNetworkingSockets = stdenv.mkDerivation rec { + pname = "GameNetworkingSockets"; + version = "2020-02-27"; + + src = fetchFromGitHub { + sha256 = "1vlrqjpqmdv1gphj2bkqg0bljqxfv75say6vrcnk9z14irih9a24"; + owner = "ValveSoftware"; + repo = pname; + rev = "36d41513e9a25d7ad4c2b37826d6594aaf185374"; + }; + + mesonFlags = [ "-Dlight_tests=true" ]; + + buildInputs = [ protobuf openssl ]; + nativeBuildInputs = [ pkgconfig meson cmake ninja ]; + installPhase = '' + mkdir -p $out/lib $out/include; find . + cp src/libGameNetworkingSockets.so $out/lib/ + cp -r ../include $out/ + ''; + + + #outputs = [ "out" "dev" "lib" ]; + + meta = with stdenv.lib; { + description = "WebDav server implementation and library using libsoup"; + homepage = "https://wiki.gnome.org/phodav"; + license = licenses.lgpl21; + maintainers = with maintainers; [ gnidorah ]; + platforms = platforms.linux; + }; + }; + base = stdenv.mkDerivation { + pname = "soldat-base"; + version = "1.0.0"; + src = fetchFromGitHub { + repo = "base"; + owner = "soldat"; + rev = "3c002b9"; + sha256 = "1wc1cmdavf6ng05wfcpxn124n23vivx4nn06irqmar6jmrklrbq0"; + }; + buildInputs = [ zip ]; + buildPhase = '' + sh ./create_smod.sh + ''; + installPhase = '' + install -D soldat.smod $out/soldat.smod + install -D client/play-regular.ttf $out/play-regular.ttf + ''; + }; + src = fetchFromGitHub { + repo = "soldat"; + owner = "soldat"; + rev = "6dee4d0"; + sha256 = "0jjgdxprlvyf5kh2mb48vrp5nxk3h3jbaxmy7xmna80ssx4bjhxf"; + }; + stb = stdenv.mkDerivation { + pname = "soldat"; + version = "1.0.0"; + inherit src; + # makeFlags = [ "CFLAGS='-Fl${openal}/lib'" ]; + buildPhase = '' + cd client + mkdir -p build/linux + make -C libs/stb/ + ''; + installPhase = '' + install -D build/libstb.so $out/lib/libstb.so + ''; + + buildInputs = [ ]; + }; +in +stdenv.mkDerivation { + pname = "soldat"; + version = "1.0.0"; + inherit src; + # makeFlags = [ "CFLAGS='-Fl${openal}/lib'" ]; + buildPhase = '' + cd client + mkdir -p build/linux + make -C libs/stb/ + make linux_x86_64 + cd ../server + mkdir -p build/linux + make linux_x86_64 + cd .. + ''; + + # TODO: soldatserver still needs to be copied out of the derivation to somewhere writeable + installPhase = '' + share=$out/share/soldat + bin=$out/bin + mkdir -p $share $bin + + install ${base}/soldat.smod $share/soldat.smod + install ${base}/play-regular.ttf $share/play-regular.ttf; + install -m755 client/build/soldat_x64 $share/soldat_x64 + install client/media/soldat.ico $share/soldat.ico + + install -m755 server/build/soldatserver_x64 $share/soldatserver_x64 + + ls -alhtr $share/ + + makeWrapper $share/soldat_x64 $bin/soldat --add-flags '-fs_portable 0' + makeWrapper $share/soldatserver_x64 $bin/soldatserver --add-flags '-fs_userpath ~/.local/share/Soldat/Soldat' + ''; + + nativeBuildInputs = [ autoPatchelfHook makeWrapper ]; + buildInputs = [ + fpc freetype openal x11 SDL2 physfs_2 GameNetworkingSockets stb + ]; +} + -- cgit v1.2.3 From 01d30d759bbb8c7a60215b635fd55bd1ecc5c3d3 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 15 Jun 2020 11:02:06 +0200 Subject: ma pkgs.youtube-dl2kodi: init --- makefu/5pkgs/youtube-dl2kodi/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 makefu/5pkgs/youtube-dl2kodi/default.nix (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/youtube-dl2kodi/default.nix b/makefu/5pkgs/youtube-dl2kodi/default.nix new file mode 100644 index 000000000..dfaab97cb --- /dev/null +++ b/makefu/5pkgs/youtube-dl2kodi/default.nix @@ -0,0 +1,11 @@ +{ writeScriptBin, fetchFromGitHub, python3 }: +let + src = fetchFromGitHub { + owner = "makefu"; + repo = "youtube-dl2kodi"; + rev = "88abe687842309d7bda0b7ba65b64e8058b855d6"; + sha256 = "18csv2ighwgdgsm66hvw7fanv1pz522p24q59q2cwqy86fpg9y03"; + }; +in writeScriptBin "youtube-dl2kodi" '' + ${python3}/bin/python ${src}/youtube-dl2kodi.py "$@" +'' -- cgit v1.2.3 From 169094cfba680fdeac0a10a6390786f3eca30b43 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 15 Jun 2020 11:17:24 +0200 Subject: ma pkgs.debmirror: fix deprecation notice --- makefu/5pkgs/debmirror/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/debmirror/default.nix b/makefu/5pkgs/debmirror/default.nix index 67b34b6ee..d1f007de6 100644 --- a/makefu/5pkgs/debmirror/default.nix +++ b/makefu/5pkgs/debmirror/default.nix @@ -1,7 +1,7 @@ { stdenv, pkgs, fetchgit }: pkgs.perlPackages.buildPerlPackage rec { - name = "debmirror-${version}"; + pname = "debmirror"; version = "2.25"; enableParallelBuilding = true; -- cgit v1.2.3 From bf5c768ecfcfc7a2af1e9ab45ad65ee33bf6ab41 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 15 Jun 2020 11:17:48 +0200 Subject: ma pkgs.dex2jar: use upstream --- makefu/5pkgs/dex2jar/default.nix | 48 ---------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 makefu/5pkgs/dex2jar/default.nix (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/dex2jar/default.nix b/makefu/5pkgs/dex2jar/default.nix deleted file mode 100644 index 76557ce67..000000000 --- a/makefu/5pkgs/dex2jar/default.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ stdenv, lib, pkgs, fetchurl, jre, makeWrapper, unzip }: -stdenv.mkDerivation rec { - name = "${packageName}-${version}"; - packageName = "dex2jar"; - version = "2.0"; - - src = fetchurl { - url = "mirror://sourceforge/${packageName}/${name}.zip"; - sha256 = "1g3mrbyl8sdw1nhp17z23qbfzqpa0w2yxrywgphvd04jdr6yn1vr"; - }; - - nativeBuildInputs = [ makeWrapper unzip ]; - - unpackPhase = '' - unzip $src - cd ${name} - ''; - - configurePhase = ":"; - - buildPhase = '' - rm *.bat - chmod +x *.sh - ''; - - installPhase = '' - f=$out/lib/dex2jar/ - bin=$out/bin - - mkdir -p $f $bin - - # fixup path to java - sed -i 's#^java#${pkgs.jre}/bin/java#' d2j_invoke.sh - - mv * $f - for i in $f/*.sh; do - n=$(basename ''${i%.sh}) - makeWrapper $i $bin/$n - done - ''; - fixupPhase = ":"; - - meta = { - homepage = https://sourceforge.net/projects/dex2jar/; - description = "Tools to work with android .dex and java .class files"; - license = lib.licenses.asl20; - }; -} -- cgit v1.2.3 From e8751b0efbb88d6937072bb21af8d3f9d34676e7 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 15 Jun 2020 11:19:12 +0200 Subject: ma pkgs.git-xlsx-textconv: mark as broken --- makefu/5pkgs/git-xlsx-textconv/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/git-xlsx-textconv/default.nix b/makefu/5pkgs/git-xlsx-textconv/default.nix index 66dde76ef..d8bc39534 100644 --- a/makefu/5pkgs/git-xlsx-textconv/default.nix +++ b/makefu/5pkgs/git-xlsx-textconv/default.nix @@ -27,4 +27,5 @@ in sha256 = "055f3caj1y8v7sc2pz9q0dfyi2ij77d499pby4sjfvm5kjy9msdi"; }; propagatedBuildInputs = [ go-xlsx ]; -}).bin + meta.broken = true; +}) -- cgit v1.2.3 From 995122817c77eba1c6aa8fbddd8985aaa279b472 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 15 Jun 2020 11:19:47 +0200 Subject: ma pkgs.soldat: remove debug code --- makefu/5pkgs/soldat/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/soldat/default.nix b/makefu/5pkgs/soldat/default.nix index 0b313a065..7518ddee5 100644 --- a/makefu/5pkgs/soldat/default.nix +++ b/makefu/5pkgs/soldat/default.nix @@ -100,13 +100,12 @@ stdenv.mkDerivation { install ${base}/soldat.smod $share/soldat.smod install ${base}/play-regular.ttf $share/play-regular.ttf; + install -m755 client/build/soldat_x64 $share/soldat_x64 install client/media/soldat.ico $share/soldat.ico install -m755 server/build/soldatserver_x64 $share/soldatserver_x64 - ls -alhtr $share/ - makeWrapper $share/soldat_x64 $bin/soldat --add-flags '-fs_portable 0' makeWrapper $share/soldatserver_x64 $bin/soldatserver --add-flags '-fs_userpath ~/.local/share/Soldat/Soldat' ''; -- cgit v1.2.3 From bfc47370a735a4d221e4faa79c85c8546d030766 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 15 Jun 2020 13:29:36 +0200 Subject: ma pkgs.git-xlsx-textconv: unmark broken --- makefu/5pkgs/git-xlsx-textconv/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/git-xlsx-textconv/default.nix b/makefu/5pkgs/git-xlsx-textconv/default.nix index d8bc39534..ffb9b003c 100644 --- a/makefu/5pkgs/git-xlsx-textconv/default.nix +++ b/makefu/5pkgs/git-xlsx-textconv/default.nix @@ -27,5 +27,5 @@ in sha256 = "055f3caj1y8v7sc2pz9q0dfyi2ij77d499pby4sjfvm5kjy9msdi"; }; propagatedBuildInputs = [ go-xlsx ]; - meta.broken = true; + #meta.broken = true; }) -- cgit v1.2.3 From 3532956d2cbfe8e5739162dd81fc4502f7974c3f Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 15 Jun 2020 14:41:53 +0200 Subject: ma pkgs.shiori: bump go to 1.14 --- makefu/5pkgs/shiori/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/shiori/default.nix b/makefu/5pkgs/shiori/default.nix index c604fbbde..ee4aa9304 100644 --- a/makefu/5pkgs/shiori/default.nix +++ b/makefu/5pkgs/shiori/default.nix @@ -1,6 +1,6 @@ -{ go_1_12, buildGoPackage, fetchFromGitHub }: +{ go_1_14, buildGoPackage, fetchFromGitHub }: let - builder = buildGoPackage.override { go = go_1_12; }; + builder = buildGoPackage.override { go = go_1_14; }; in builder rec { name = "shiori-${version}"; -- cgit v1.2.3 From 7cdb5bd67057f944af6b9529cf1f73798036f674 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 17 Jun 2020 09:50:10 +0200 Subject: ma pkgs.navi: init --- makefu/5pkgs/navi/default.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 makefu/5pkgs/navi/default.nix (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/navi/default.nix b/makefu/5pkgs/navi/default.nix new file mode 100644 index 000000000..1e8274f80 --- /dev/null +++ b/makefu/5pkgs/navi/default.nix @@ -0,0 +1,37 @@ +# via https://git.ingolf-wagner.de/palo/nixos-config/src/master/pkgs/navi/default.nix + +{ rustPlatform, fetchFromGitHub, stdenv, fzf, makeWrapper, openssl, pkgconfig }: + +rustPlatform.buildRustPackage rec { + pname = "navi"; + version = "2.1.1"; + + src = fetchFromGitHub { + owner = "denisidoro"; + repo = "navi"; + rev = "v${version}"; + #rev = "${version}"; + sha256 = "1195f7c3ij2mkv0k1h9fwn6jkyjb01w0p6mj2xc39w5f6i0c0hwp"; + }; + + cargoSha256 = "0ks25w0dncaiw3ma05r8jrng3cczancrynnpgdksbvgz49lg3wjw"; + + postInstall = '' + mkdir -p $out/share/navi/ + mv shell $out/share/navi/ + + wrapProgram "$out/bin/navi" \ + --suffix "PATH" : "${fzf}/bin" + ''; + buildInputs = [ openssl ]; + nativeBuildInputs = [ makeWrapper pkgconfig ]; + + meta = with stdenv.lib; { + description = "An interactive cheatsheet tool for the command-line"; + homepage = "https://github.com/denisidoro/navi"; + license = licenses.asl20; + platforms = platforms.unix; + maintainers = with maintainers; [ mrVanDalo ]; + }; +} + -- cgit v1.2.3 From bff6372f51943849dd1ca8bd164036c1a5fd0fdd Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 17 Jun 2020 09:50:26 +0200 Subject: ma pkgs.awesomecfg: fix syntax error --- makefu/5pkgs/awesomecfg/full.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/awesomecfg/full.cfg b/makefu/5pkgs/awesomecfg/full.cfg index 2abfe503d..d96b61ad6 100644 --- a/makefu/5pkgs/awesomecfg/full.cfg +++ b/makefu/5pkgs/awesomecfg/full.cfg @@ -569,7 +569,7 @@ local os = { -- {{{ autostart do - awful.spawn("urxvt", { tag = tags[1] }) # dev shell + awful.spawn("urxvt", { tag = tags[1] }) -- dev shell awful.spawn("urxvt -e mosh makefu@gum.i", { tag = tags[2] }) awful.spawn("firefox", { tag = tags[3] }) awful.spawn("telegram-desktop", { tag = tags[4] }) -- cgit v1.2.3 From 2001bc20d887fa7b77ef083c44e7c538f9222146 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 26 Jun 2020 13:14:41 +0200 Subject: ma pkgs.tmm: bump to 3.1.6 they seem to remove unstable builds after one minor release this will be a damn pain in the ass --- makefu/5pkgs/tinymediamanager/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/tinymediamanager/default.nix b/makefu/5pkgs/tinymediamanager/default.nix index 64d00e3a1..03bb90177 100644 --- a/makefu/5pkgs/tinymediamanager/default.nix +++ b/makefu/5pkgs/tinymediamanager/default.nix @@ -15,11 +15,11 @@ let in stdenv.mkDerivation rec { pname = "tinymediamanager"; - version = "3.1.5"; + version = "3.1.6"; src = fetchurl { url = "http://release.tinymediamanager.org/v3/dist/tmm_${version}_linux.tar.gz"; - sha256 = "01nlbkiwvw1cdwrxpdvkkc6g5zrjig22hxbyv1i44ay4wi6vmcax"; + sha256 = "06h0q52f0q4aq600nqzjkgrbkwxa2gnpbbn3nbfhni550bdgvf40"; }; sourceRoot = "."; -- cgit v1.2.3 From 1ed4ded92f83e4d2f91b0b46c514acb420b7e0c3 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 26 Jun 2020 13:33:28 +0200 Subject: ma pkgs.tinymediamanager: use archive.org, tmm drops the previous release faster than a hot potato --- makefu/5pkgs/tinymediamanager/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'makefu/5pkgs') diff --git a/makefu/5pkgs/tinymediamanager/default.nix b/makefu/5pkgs/tinymediamanager/default.nix index 03bb90177..8e59b60ac 100644 --- a/makefu/5pkgs/tinymediamanager/default.nix +++ b/makefu/5pkgs/tinymediamanager/default.nix @@ -18,7 +18,8 @@ stdenv.mkDerivation rec { version = "3.1.6"; src = fetchurl { - url = "http://release.tinymediamanager.org/v3/dist/tmm_${version}_linux.tar.gz"; + #url = "http://release.tinymediamanager.org/v3/dist/tmm_${version}_linux.tar.gz"; + url = "https://archive.org/download/tmm_linux.tar/tmm_${version}_linux.tar.gz"; sha256 = "06h0q52f0q4aq600nqzjkgrbkwxa2gnpbbn3nbfhni550bdgvf40"; }; sourceRoot = "."; -- cgit v1.2.3