Skip to content

Instantly share code, notes, and snippets.

Hi @nrdxp + @edolstra -- I have a couple ideas for how to make things marginally better here but, tl;dr: I'd like feedback or direction from either or both of you on my idea before I invest more time, especially for exploring the proposed solutions that require C++ development. (Also, please let me know if you'd like me to move this from an issue comment to an RFC or even a, e.g., Google Doc design doc, for easier interaction.)

Problem Statement

In my words at a minimum:

flake authors need to be able to request submodule-fetching for the repository hosting flake.nix

(Please see my appendix for supporting use cases and UX/DX considerations if you aren't already convinced about this need. Also, @nrdxp, please let me know if you actually have a different motivating problem in mind?)

@mstone
mstone / qemu-m1-mbox-flake.nix
Last active October 3, 2021 15:27
qemu-m1-mbox
{
description = "qemu-m1";
inputs.utils.url = "github:numtide/flake-utils";
inputs.qemuUpstream.url = "git+https://github.com/qemu/qemu?ref=refs/tags/v6.1.0";
inputs.qemuUpstream.flake = false;
outputs = { self, nixpkgs, utils, qemuUpstream }: let
name = "qemu-m1";
in utils.lib.simpleFlake {
@mstone
mstone / godep.nix
Created January 2, 2014 02:37
First-draft [Nix](http://nixos.org/nix/manual/) expression for building simple [Golang](http://golang.org) programs.
# Copyright (c) 2014 Akamai Technologies, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,