Skip to content

Instantly share code, notes, and snippets.

with import <nixpkgs> {};
stdenv.mkDerivation {
name = "test";
src = fetchFromGitHub {
owner = "cs50";
repo = "libcs50";
rev = "v8.0.3";
sha256 = "08fj1ckbv6q8fsyv3x17y73sfnk0x4b3dlfl35637srn36zfk28n";
};
data Controller a b t m = Controller {
_session :: R.Dynamic t D.Session,
_router :: D.Router a b t m
}
controller :: R.Reflex t => R.Dynamic t D.Session -> D.Router a b t m -> Controller a b t m
controller session router =
Controller {
_session = session,
_router = router
@spinus
spinus / config.nix
Created July 8, 2017 16:15
~/nixpkgs/config.nix
let
ver = "20170527";
in
{
allowUnfree = true;
allowBroken = true;
firefox = {
enableGoogleTalkPlugin = true;
enableAdobeFlash = true;
icedtea=true;
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 967 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Launching emulator...
error Failed to launch emulator. Reason: Emulator exited before boot..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
Downloading https://services.gradle.org/distributions/gradle-6.2-all.zip
....................................................................................................................................
$ gradle bundle
Welcome to Gradle 6.0.1!
Here are the highlights of this release:
- Substantial improvements in dependency management, including
- Publishing Gradle Module Metadata in addition to pom.xml
- Advanced control of transitive versions
- Support for optional features and dependencies
- Rules to tweak published metadata
$ gradle bundle --offline
Welcome to Gradle 6.0.1!
Here are the highlights of this release:
- Substantial improvements in dependency management, including
- Publishing Gradle Module Metadata in addition to pom.xml
- Advanced control of transitive versions
- Support for optional features and dependencies
- Rules to tweak published metadata
make build  37.30.50.13 IP  100% █ 
mobile-app-android> unpacking sources
mobile-app-android> unpacking source archive /nix/store/6cywlx8g1yipsc9yhd6y91bvn1786cnb-exampleproject
mobile-app-android> source root is exampleproject
mobile-app-android> patching sources
mobile-app-android> configuring
mobile-app-android> no configure script, doing nothing
mobile-app-android> building
mobile-app-android> [i] unfortunatelly react-native modifies node_modules so we need to copy that to be outside of nix store and writeable
mobile-app-android> [i] /build/exampleproject/node_modules/.done-f175d2e8cefdb47edff09aeccad6b507e3a49bccdbfa849fd8f29bf13808d080 exists, not copying node_modules (cached)
@spinus
spinus / gist:4d438b04463f47384856903a8a7de973
Created October 17, 2020 21:28
gradle repo structure
$ ls /nix/store/p219rwj63z7dkyz73gbrknswnkg6ncrw-gradle-maven-dependencies -l
total 10
dr-xr-xr-x 33 root root 33 Jan 1 1970 androidx
dr-xr-xr-x 9 root root 9 Jan 1 1970 com
dr-xr-xr-x 3 root root 3 Jan 1 1970 commons-cli
dr-xr-xr-x 3 root root 3 Jan 1 1970 commons-codec
dr-xr-xr-x 3 root root 3 Jan 1 1970 commons-io
dr-xr-xr-x 3 root root 3 Jan 1 1970 commons-logging
dr-xr-xr-x 3 root root 3 Jan 1 1970 de
dr-xr-xr-x 3 root root 3 Jan 1 1970 it
@spinus
spinus / falcon.nix
Created June 15, 2022 10:47
crowdstrike falcon
{pkgs?import <nixpkgs> {}}:
with pkgs;
stdenv.mkDerivation {
name = "falcon-sensor";
version = "4.18.0-6402";
arch = "amd64";
src = ./falcon-sensor_6.34.0-13108_amd64.deb;
nativeBuildInputs = [ dpkg autoPatchelfHook zlib pkgs.libnl pkgs.openssl ];