Skip to content

Instantly share code, notes, and snippets.

View datakurre's full-sized avatar

Asko Soukka datakurre

View GitHub Profile
@datakurre
datakurre / Cargo.lock
Last active September 24, 2022 17:56
River environment for Nix
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "autocfg"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
@datakurre
datakurre / README.md
Last active September 15, 2022 18:52
madbg Python environment with Nix
@datakurre
datakurre / test_testability_disabled.robot
Last active June 17, 2022 09:43
Example robotframework-seleniumtestability test suites for Plone
*** Settings ***
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot
Library Selenium2Library
Test Setup Run keywords Plone test setup
Test Teardown Run keywords Plone test teardown
{ pkgs ? import ./nix {}
}:
with pkgs;
mkShell {
buildInputs = [
(python3.withPackages(ps: with ps; [
# Packages that need to come from nixpkgs
cryptography
@datakurre
datakurre / README.md
Last active April 7, 2022 08:24 — forked from bollwyvl/README.md
ipywidgets 8 binder
@datakurre
datakurre / cli-ext-node-composition.nix
Last active October 26, 2021 20:14
hasura-graphql-engine console-assets and cli-ext in nix
# This file has been generated by node2nix 1.9.0. Do not edit!
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}:
let
nodeEnv = import ./cli-ext-node-env.nix {
inherit (pkgs) stdenv lib python2 runCommand writeTextFile;
inherit pkgs nodejs;
@datakurre
datakurre / 02-add-entrypoints.patch
Last active May 7, 2021 19:40
another nix python packaging example
diff --git a/setup.py b/setup.py
index a15336d..307fb56 100644
--- a/setup.py
+++ b/setup.py
@@ -60,6 +60,9 @@ setuptools.setup(
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
+ entry_points={"console_scripts": [
+ "mautrix-hangouts = mautrix_hangouts.__main__:main"
@datakurre
datakurre / python-packages.nix
Last active October 14, 2022 04:52
"setup.nix" packaging example
# Generated by pip2nix 0.8.0.dev1
# See https://github.com/nix-community/pip2nix
{ pkgs, fetchurl, fetchgit, fetchhg }:
self: super: {
"Babel" = super.buildPythonPackage rec {
pname = "Babel";
version = "2.9.0";
src = fetchurl {
@datakurre
datakurre / minecraft-bedrock-server.nix
Last active November 19, 2023 23:11
Minecraft Bedrock Server NixOS module
{ config, lib, pkgs, ... }:
let
libCrypto = with pkgs; stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "minecraft-bedrock-server-libcrypto";
version = "1.16-201.02";
src = fetchurl {
url = "https://minecraft.azureedge.net/bin-linux/bedrock-server-1.16.201.02.zip";
/.cache/
/.netrc
/netrc
/result