summaryrefslogtreecommitdiff
path: root/templates/system-flake/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system-flake/pkgs')
-rw-r--r--templates/system-flake/pkgs/config/default.nix5
-rw-r--r--templates/system-flake/pkgs/config/unfree.nix7
-rw-r--r--templates/system-flake/pkgs/default.nix12
-rw-r--r--templates/system-flake/pkgs/hello-world/Makefile6
-rw-r--r--templates/system-flake/pkgs/hello-world/default.nix14
-rw-r--r--templates/system-flake/pkgs/hello-world/hello-world.c7
-rw-r--r--templates/system-flake/pkgs/lib/default.nix3
-rw-r--r--templates/system-flake/pkgs/lib/fibonacci.nix7
8 files changed, 0 insertions, 61 deletions
diff --git a/templates/system-flake/pkgs/config/default.nix b/templates/system-flake/pkgs/config/default.nix
deleted file mode 100644
index 47abe76..0000000
--- a/templates/system-flake/pkgs/config/default.nix
+++ /dev/null
@@ -1,5 +0,0 @@
-{lib}:
-with lib; {
- android_sdk.accept_license = true;
- allowUnfreePredicate = pkg: import ./unfree.nix lib (getName pkg);
-}
diff --git a/templates/system-flake/pkgs/config/unfree.nix b/templates/system-flake/pkgs/config/unfree.nix
deleted file mode 100644
index deda971..0000000
--- a/templates/system-flake/pkgs/config/unfree.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-lib: name:
-with lib;
- elem name [
- "libproprietary-v3"
- "closed-source-pkg"
- "favorite-abandonware"
- ]
diff --git a/templates/system-flake/pkgs/default.nix b/templates/system-flake/pkgs/default.nix
deleted file mode 100644
index 78a86d4..0000000
--- a/templates/system-flake/pkgs/default.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-final: prev:
-with prev.lib; let
- inherit (final) callPackage fetchpatch;
-in {
- lib = callPackage ./lib {};
-
- hello-world = callPackage ./hello-world {};
-
- override = {
- sl = prev.sl.overrideAttrs {pname = "my-sl";};
- };
-}
diff --git a/templates/system-flake/pkgs/hello-world/Makefile b/templates/system-flake/pkgs/hello-world/Makefile
deleted file mode 100644
index 4eef056..0000000
--- a/templates/system-flake/pkgs/hello-world/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-CFLAGS += -O3 -s
-
-all: hello-world
-
-%: %.c
- $(CC) $(CFLAGS) -o $@ $<
diff --git a/templates/system-flake/pkgs/hello-world/default.nix b/templates/system-flake/pkgs/hello-world/default.nix
deleted file mode 100644
index 19047a1..0000000
--- a/templates/system-flake/pkgs/hello-world/default.nix
+++ /dev/null
@@ -1,14 +0,0 @@
-{stdenv, ...}:
-stdenv.mkDerivation {
- name = "hello-world";
- version = "1.0.0";
-
- src = ./.;
-
- installPhase = ''
- mkdir -p $out/bin
- cp hello-world $out/bin
- '';
-
- meta.mainProgram = "hello-world";
-}
diff --git a/templates/system-flake/pkgs/hello-world/hello-world.c b/templates/system-flake/pkgs/hello-world/hello-world.c
deleted file mode 100644
index d6cfa6b..0000000
--- a/templates/system-flake/pkgs/hello-world/hello-world.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main()
-{
- printf("Hello, world!\n");
- return 0;
-}
diff --git a/templates/system-flake/pkgs/lib/default.nix b/templates/system-flake/pkgs/lib/default.nix
deleted file mode 100644
index ab54163..0000000
--- a/templates/system-flake/pkgs/lib/default.nix
+++ /dev/null
@@ -1,3 +0,0 @@
-{callPackage}: {
- fibonacci = callPackage ./fibonacci.nix {};
-}
diff --git a/templates/system-flake/pkgs/lib/fibonacci.nix b/templates/system-flake/pkgs/lib/fibonacci.nix
deleted file mode 100644
index a12576b..0000000
--- a/templates/system-flake/pkgs/lib/fibonacci.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-let
- fib = n:
- if n > 1
- then fib (n - 1) + fib (n - 2)
- else 1;
-in
- fib